プロジェクト

全般

プロフィール

Vote #64219

完了

Revert a specific plugin migrations

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
開始日:
2008/12/02
期日:
進捗率:

100%

予定工数:
category_id:
20
version_id:
6
issue_org_id:
2265
author_id:
1188
assigned_to_id:
5
comments:
10
status_id:
5
tracker_id:
3
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

There's a topic on the forum "here":http://www.redmine.org/boards/2/topics/show/2820 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 ?


journals

--------------------------------------------------------------------------------
My proposal wasn't very beautiful.. Sorry for the double post.
--------------------------------------------------------------------------------
+1
I have also failed to get the Engines uninstall routine work.
--------------------------------------------------------------------------------
+1 This will be handy when experimenting with plugins.
--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------
As the Engines plugin is part of Redmine's source tree shoudn't we fix the error there? (See patch.)
--------------------------------------------------------------------------------
Any news about an integration into Redmine core ?
--------------------------------------------------------------------------------
I tried uninstall budget plugin, but table 'deliverates' is still on db. did I lose something ?

Thanks
--------------------------------------------------------------------------------
For the Rails 2.3.4 upgrade (#3597) I had to upgrade Engines which will fix this bug. I'll close it once #3597 is ready.
--------------------------------------------------------------------------------
This should be fixed in the latest Rails Engines upgrade, r2887.
--------------------------------------------------------------------------------


related_issues

relates,Closed,3597,Rails 2.3.4 support
duplicates,Closed,3329,New rake test: Allow migrating plugin to a specific version

Admin Redmine さんが3年以上前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン0.9.0_6 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0