diff --git a/app/Listeners/Updates/Version113.php b/app/Listeners/Updates/Version113.php index d6955bd51..87e831df8 100644 --- a/app/Listeners/Updates/Version113.php +++ b/app/Listeners/Updates/Version113.php @@ -4,6 +4,7 @@ namespace App\Listeners\Updates; use App\Events\UpdateFinished; use App\Models\Setting\Currency; +use Artisan; class Version113 extends Listener { @@ -24,6 +25,9 @@ class Version113 extends Listener return; } + // Update database + Artisan::call('migrate', ['--force' => true]); + // Update currencies $currencies = Currency::all(); @@ -36,8 +40,5 @@ class Version113 extends Listener $currency->save(); } - - // Update database - Artisan::call('migrate', ['--force' => true]); } } diff --git a/app/Listeners/Updates/Version117.php b/app/Listeners/Updates/Version117.php index 5a1bff775..ca032c3d1 100644 --- a/app/Listeners/Updates/Version117.php +++ b/app/Listeners/Updates/Version117.php @@ -7,6 +7,7 @@ use App\Models\Setting\Currency; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; +use Artisan; class Version117 extends Listener {