Patch #14971
closedPlugin rollback migration
0%
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
       Updated by Jérôme BATAILLE over 11 years ago
      Updated by Jérôme BATAILLE over 11 years ago
      
    
    Any chance that this straightforward patch can be integrated ?
       Updated by Jérôme BATAILLE over 11 years ago
      Updated by Jérôme BATAILLE over 11 years ago
      
    
    Example of usage :
rake redmine:plugins:rollback NAME=<plugin_name> STEP=1
       Updated by Go MAEDA almost 4 years ago
      Updated by Go MAEDA almost 4 years ago
      
    
    - 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
       Updated by Jérôme BATAILLE over 3 years ago
      Updated by Jérôme BATAILLE over 3 years ago
      
    
    @go You can close this issue, I have no time anymore to contribute to Redmine.
       Updated by Go MAEDA over 3 years ago
      Updated by Go MAEDA over 3 years ago
      
    
    - Status changed from Needs feedback to Closed
Redmine already has the suggested feature. See #14971#note-3.