Revert a specific plugin migrations
|Assignee:||Eric Davis||% Done:|
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.
$ 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 ?
#5 Updated by Eric Davis about 11 years ago
- Status changed from New to 7
- Assignee set to Eric Davis
Great workaround. I'd like fix this in Engines and submit a patch to the Engines project. I just tried to migrate a plugin on a separate Engines project (http://github.com/courtenay/tentacle/tree/master) and it had the same error.