Fixed module without migrations

This commit is contained in:
Lucas Bartholemy 2015-07-16 13:02:08 +02:00
parent 47f2b7a2b2
commit e1fe539f29

View File

@ -185,9 +185,15 @@ class Module extends \yii\base\Module
return true;
}
/**
* Execute all not applied module migrations
*/
protected function migrate()
{
\humhub\commands\MigrateController::webMigrateUp($this->basePath . '/migrations');
$migrationPath = $this->basePath . '/migrations';
if (is_dir($migrationPath)) {
\humhub\commands\MigrateController::webMigrateUp();
}
}
/**