This project is not covered by Drupal’s security advisory policy.

The rollback module provides the functionality to enable a developer to write database updates that can be rolled back, either manually (via Drush) or automatically (in the case of a failed update).

The idea for the rollback module was inspired by migrations in Laravel.

Features

  • Provides a framework to allow developers to write database updates that can be rolled back.
  • Formalises updates in to a class and allows dependency injection
  • Traits can be applied to a "rollable" update class to provide further functionality, such as, validation to check the update succeeded and the ability to revert the update if it fails.

Drupal 9 Support

The rollback module is compatible with Drupal 9 as of Drupal 8.8.x, there is no known compatibility issues with Drupal 9.

Developer documentation

Documentation is available here: https://bytelab.solutions/docs/rollback/.

Supporting organizations: 

Project information

Releases