Run ProcessApps when database version is bumped

This commit is contained in:
Kode 2022-03-25 15:35:05 +00:00
parent 3a043e0165
commit 724110dad2

View file

@ -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]);