Skip to content

Commit 158f28e

Browse files
committed
bugfix
test #373
1 parent b02bb34 commit 158f28e

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

resources/views/components/finishing.blade.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,20 @@ function getStringBetween($string, $start, $end) {
107107
108108
/* Updates button database entries */
109109
Schema::disableForeignKeyConstraints();
110-
try {Artisan::call('migrate');} catch (exception $e) {}
111-
try {DB::table('buttons')->delete();} catch (exception $e) {}
112-
try {DB::table('buttons')->truncate();} catch (exception $e) {}
113-
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}
110+
111+
// Run migrations
112+
Schema::dropIfExists('buttons');
113+
Schema::create('buttons', function (Blueprint $table) {
114+
// Define table columns here
115+
});
116+
117+
// Clear button table
118+
DB::table('buttons')->truncate();
119+
120+
// Seed button table
121+
$seeder = new ButtonSeeder();
122+
$seeder->run();
123+
114124
Schema::enableForeignKeyConstraints();
115125
116126
try {

0 commit comments

Comments
 (0)