yiiext/migrate-command — Issue #12: customization of 'migration' subdirectory, relaying on frameworks module aliases
Author: redguy666
Created: 2012-02-17 10:40:49+00:00
State: open

This is my simple improvement to your extension. Basically there are two changes:
I need to configure where relation files are on disk (relative to core/module path) so I added 'moduleMigrationsDirectory' public attribute which points to 'migrations' by default.
Other change apply to getModulePaths function: instead of pointing

$alias = 'application.modules.' . $module . '.migrations';

I would rather do:

$alias = $module . '.' . $this->moduleMigrationsDirectory;

This work as Yii by default creates alias for every module defined. alias is same as module id and points to root directory of that module.