From 40823da42a6763b0a5d272a8b6aef2c70abb6416 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Tue, 6 Dec 2022 20:27:01 +0100 Subject: [PATCH] Bugfix --- resources/views/components/finishing.blade.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/components/finishing.blade.php b/resources/views/components/finishing.blade.php index 2fb9e96..93a3859 100644 --- a/resources/views/components/finishing.blade.php +++ b/resources/views/components/finishing.blade.php @@ -79,13 +79,14 @@ use Illuminate\Support\Facades\Schema; } /* Updates button database entries */ - Artisan::call('migrate'); Schema::disableForeignKeyConstraints(); - DB::table('buttons')->delete(); - DB::table('buttons')->truncate(); + try {Artisan::call('migrate');} 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) {} Schema::enableForeignKeyConstraints(); + try { DB::table('link_types')->updateOrInsert([ 'typename' => 'text', 'title' => 'Text', @@ -101,6 +102,7 @@ use Illuminate\Support\Facades\Schema; } ]' ]); + } catch (exception $e) {} echo "current() . "?success\" />"; ?> \ No newline at end of file