Project

General

Profile

Actions

Patch #14971

closed

Plugin rollback migration

Added by Jérôme BATAILLE over 10 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by Jérôme BATAILLE almost 10 years ago

Any chance that this straightforward patch can be integrated ?

Actions #2

Updated by Jérôme BATAILLE over 9 years ago

Example of usage :

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

Actions #3

Updated by Go MAEDA about 2 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
Actions #4

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

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

Actions #5

Updated by Go MAEDA almost 2 years ago

  • Status changed from Needs feedback to Closed

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

Actions

Also available in: Atom PDF