Run ProcessApps when database version is bumped
This commit is contained in:
parent
3a043e0165
commit
724110dad2
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ class AppServiceProvider extends ServiceProvider
|
|||
$app_version = config('app.version');
|
||||
if (version_compare($app_version, $db_version) == 1) { // app is higher than db, so need to run migrations etc
|
||||
Artisan::call('migrate', ['--path' => 'database/migrations', '--force' => true, '--seed' => true]);
|
||||
ProcessApps::dispatch();
|
||||
}
|
||||
} else {
|
||||
Artisan::call('migrate', ['--path' => 'database/migrations', '--force' => true, '--seed' => true]);
|
||||
|
|
Loading…
Reference in a new issue