FEATURE #2520: add template for creating new table

This commit is contained in:
Michal Kváček
2017-09-01 23:49:34 +02:00
parent a5b6f6fa0d
commit 2d66cf672a
4 changed files with 54 additions and 7 deletions
@@ -39,8 +39,9 @@ class RunMigrations extends Command
foreach ($modules as $module) {
$this->info('Migrating '.$module->static_name);
$basePath = $module->is_template ? config('modules.path.template') : config('modules.paths.modules');
$basePath = $module->is_template ? config('modules.path.templates') : config('modules.paths.modules');
$path = $basePath . '/' . $module->static_name . '/Database/Migrations/';
$path = str_replace(base_path(), '', $path);
$this->call($command, ['--path' => $path]);
}