Project

General

Profile

Actions

Patch #14402

closed

Plugin migration directory should use plugin directory

Patch #14402: Plugin migration directory should use plugin directory

Added by Florian Schwab over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Plugin API
Target version:

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

migration_directory.patch (511 Bytes) migration_directory.patch Florian Schwab, 2013-07-05 23:58

Related issues 1 (1 open — 0 closed)

Related to Redmine - Patch #13927: Reduce coupling between plugins and the "plugins/" directoryNewJean-Baptiste BarthActions

Updated by Toshi MARUYAMA almost 13 years ago Actions #1

  • Related to Patch #13927: Reduce coupling between plugins and the "plugins/" directory added

Updated by Mischa The Evil over 11 years ago Actions #2

  • 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 11 years ago Actions #3

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Committed in r14364.

Actions

Also available in: PDF Atom