rsv : A drush extension to reset a module schema version
Component ID
1930400
Component name
rsv : A drush extension to reset a module schema version
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
The approach of using hook_update_N() made our lives a bit easier for site deployment process, and best practices for managing development,
staging, and production environments.
In many cases we will need to reset database's schema version of some modules by running a SQL query.
I think that a drush command might be helpul for such operation.
I am sharing here a drush extension I have created.
Placing this file in your drush folder will allow doing the same with following commands:
- $drush rsv module_name //reset the schema version of module_name to 0
- $drush rsv --value=N module_name //reset the schema version to N
