Skip to content

Commit 40823da

Browse files
committed
Bugfix
1 parent 5037ada commit 40823da

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

resources/views/components/finishing.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,14 @@ function getStringBetween($string, $start, $end) {
7979
}
8080
8181
/* Updates button database entries */
82-
Artisan::call('migrate');
8382
Schema::disableForeignKeyConstraints();
84-
DB::table('buttons')->delete();
85-
DB::table('buttons')->truncate();
83+
try {Artisan::call('migrate');} catch (exception $e) {}
84+
try {DB::table('buttons')->delete();} catch (exception $e) {}
85+
try {DB::table('buttons')->truncate();} catch (exception $e) {}
8686
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}
8787
Schema::enableForeignKeyConstraints();
8888
89+
try {
8990
DB::table('link_types')->updateOrInsert([
9091
'typename' => 'text',
9192
'title' => 'Text',
@@ -101,6 +102,7 @@ function getStringBetween($string, $start, $end) {
101102
}
102103
]'
103104
]);
105+
} catch (exception $e) {}
104106
105107
echo "<meta http-equiv=\"refresh\" content=\"0; " . url()->current() . "?success\" />";
106108
?>

0 commit comments

Comments
 (0)