Patch #14971

Plugin rollback migration

Added by Jérôme BATAILLE over 8 years ago. Updated 20 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Database
Target version:-

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

redmine_plugin_rollback_RMV2.3.2.diff Magnifier (2.58 KB) Jérôme BATAILLE, 2013-09-23 12:50

History

#1 Updated by Jérôme BATAILLE about 8 years ago

Any chance that this straightforward patch can be integrated ?

#2 Updated by Jérôme BATAILLE almost 8 years ago

Example of usage :

rake redmine:plugins:rollback NAME=<plugin_name> STEP=1

#3 Updated by Go MAEDA 4 months 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

#4 Updated by Jérôme BATAILLE about 1 month ago

@go You can close this issue, I have no time anymore to contribute to Redmine.

#5 Updated by Go MAEDA 20 days ago

  • Status changed from Needs feedback to Closed

Redmine already has the suggested feature. See #14971#note-3.

Also available in: Atom PDF