Project

General

Profile

Actions

Patch #2265

closed

Revert a specific plugin migrations

Added by Jean-Baptiste Barth almost 16 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin API
Target version:
Start date:
2008-12-02
Due date:
% Done:

100%

Estimated time:

Description

There's a topic on the forum here where the person asks how to revert plugin migrations easily. I think it would be useful if people want to try plugins and then uninstall it.

Engines seems to be able to do that but I didn't managed to make it work. Anyway, I think it's the same as the task to migrate all plugins : Engines know how to do this but a redmine specific task has been added. So I suggest to add a redmine specific task to migrate just one plugin.

I leave a patch in attachment, which is nearly a copy/paste from Engines db:migrate:plugin task.

Usage:
$ rake db:migrate_plugin NAME=my_plugin : migrate to last version of "my_plugin"
$ rake db:migrate_plugin NAME=my_plugin VERSION=X : migrate to version X (and 0 when you uninstall)

Any opinion about that ?


Files

migrate_plugins.diff (830 Bytes) migrate_plugins.diff Jean-Baptiste Barth, 2008-12-02 22:47
engines.rake.diff (587 Bytes) engines.rake.diff Thomas Löber, 2009-02-20 16:30

Related issues

Related to Redmine - Feature #3597: Rails 2.3.4 supportClosedEric Davis2009-07-082009-09-13

Actions
Has duplicate Redmine - Feature #3329: New rake test: Allow migrating plugin to a specific versionClosedEric Davis2009-05-10

Actions
Actions

Also available in: Atom PDF