Fixed error undefined constant "STDIN" when updating

https://github.com/JulianPrieber/littlelink-custom/issues/373
This commit is contained in:
Julian Prieber 2023-03-23 12:57:02 +01:00
parent 77c482d161
commit 18d3e6069d

View File

@ -107,7 +107,7 @@ use Illuminate\Support\Facades\File;
/* Updates button database entries */
Schema::disableForeignKeyConstraints();
try {Artisan::call('migrate');} catch (exception $e) {}
try {Artisan::call('migrate', ['--force' => true]);} catch (exception $e) {}
try {DB::table('buttons')->delete();} catch (exception $e) {}
try {DB::table('buttons')->truncate();} catch (exception $e) {}
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}