* Update module migrate command to avoid errors.

* Fixed issue #1414
This commit is contained in:
Yash Govekar
2022-10-24 20:41:00 +05:30
committed by GitHub
parent 2f9e8583f2
commit b4311b861f
2 changed files with 19 additions and 7 deletions

View File

@@ -170,7 +170,7 @@ class ModuleService extends Service
]);
try {
Artisan::call('module:migrate '.$module_name, ['--force' => true]);
Artisan::call('module:migrate '.$module_name);
} catch (Exception $e) {
Log::error('Error running migration for '.$module_name.'; error='.$e);
}
@@ -269,7 +269,7 @@ class ModuleService extends Service
}
Artisan::call('config:cache');
Artisan::call('module:migrate '.$module, ['--force' => true]);
Artisan::call('module:migrate '.$module);
return flash()->success('Module Installed');
}
@@ -290,7 +290,7 @@ class ModuleService extends Service
]);
if ($status === true) {
Artisan::call('module:migrate '.$module->name, ['--force' => true]);
Artisan::call('module:migrate '.$module->name);
}
return true;