Patch #14402
closedPlugin migration directory should use plugin directory
0%
Description
Currently the plugin migrate directory is fixed to "plugins/<plugin_name>/db/migrate" but the plugin API allows setting a custom directory.
I attached a patch to use the plugin directory instead. Because the default value for the plugin directory is "plugins/<plugin_name>" this should be compatible with existing plugins.
Files
Related issues
Updated by Toshi MARUYAMA almost 11 years ago
- Related to Patch #13927: Reduce coupling between plugins and the "plugins/" directory added
Updated by Mischa The Evil over 9 years ago
- Target version set to 3.1.0
Florian Schwab wrote:
Currently the plugin migrate directory is fixed to "plugins/<plugin_name>/db/migrate" [...]
Indeed, source:/trunk/lib/redmine/plugin.rb@14359#L428.
[...] but the plugin API allows setting a custom directory.
Right, which is implemented in r11766 and first shipped with Redmine 2.4.0.
I attached a patch to use the plugin directory instead. Because the default value for the plugin directory is "plugins/<plugin_name>" this should be compatible with existing plugins.
Can this little fix still be included in 3.1.0?
Updated by Jean-Philippe Lang over 9 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
Committed in r14364.