Skip to content

Commit

Permalink
Run ProcessApps when database version is bumped
Browse files Browse the repository at this point in the history
  • Loading branch information
KodeStar committed Mar 25, 2022
1 parent 3a043e0 commit 724110d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function boot()
$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]);
Expand Down

0 comments on commit 724110d

Please sign in to comment.