FEATURE #2520: add template for creating new table
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user