Patch #14971
closed
Plugin rollback migration
Added by Jérôme BATAILLE over 11 years ago.
Updated over 2 years ago.
Description
The first migration is not rollback-able
with :
@rake redmine:plugins:migrate NAME=<plugin_name> VERSION=<version_name>
because there is no previous migration to migrate to.
Here is a patch to be able to rollback plugins, with a steps parameter
Files
Any chance that this straightforward patch can be integrated ?
Example of usage :
rake redmine:plugins:rollback NAME=<plugin_name> STEP=1
- Status changed from New to Needs feedback
Jérôme BATAILLE wrote:
The first migration is not rollback-able
with :
@rake redmine:plugins:migrate NAME=<plugin_name> VERSION=<version_name>
because there is no previous migration to migrate to.
You can roll back all migrations including the first one by specifying "VERSION=0".
bin/rake redmine:plugins:migrate NAME=<plugin_name> VERSION=0
@go You can close this issue, I have no time anymore to contribute to Redmine.
- Status changed from Needs feedback to Closed
Also available in: Atom
PDF