Defect #10838
closedRails 3 Can't rollback plugins migrations
0%
Description
The following command
rake redmine:plugins:migrate VERSION=0
run my plugins migrations again instead of rolling back.
Updated by John Yani almost 13 years ago
Oh, it should've been in lower case "version". Documentation should be edited then before release.
Updated by Jean-Philippe Lang almost 13 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Your command is invalid with trunk@9646. When you specify a version, you have to specify the plugin name too:
$rake redmine:plugins:migrate VERSION=0 The VERSION argument requires a plugin NAME.
If you want to migrate/rollback a plugin to a specific version (eg. 0), you have to give its name:
rake redmine:plugins:migrate NAME=sample_plugin VERSION=0
And it works with VERSION=0 or version=0.
Updated by John Yani almost 13 years ago
Jean-Philippe Lang wrote:
If you want to migrate/rollback a plugin to a specific version (eg. 0), you have to give its name:
rake redmine:plugins:migrate NAME=sample_plugin VERSION=0
Your example is also invalid. It has to be
rake redmine:plugins:migrate name=sample_plugin version=0
It's in lower case. As you can see here:
http://www.redmine.org/projects/redmine/repository/entry/trunk/lib/tasks/redmine.rake#L56
So the prompt should be
The version argument requires a plugin name.
Updated by Jean-Philippe Lang almost 13 years ago
- Assignee set to Jean-Philippe Lang
- Resolution changed from Invalid to Fixed
OK, yet another difference between ruby and ruby/win32...
Fixed in r9647.