Skip to content

Commit ae23e16

Browse files
committed
Revert "bugfix"
This reverts commit 158f28e.
1 parent 158f28e commit ae23e16

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

resources/views/components/finishing.blade.php

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,10 @@ function getStringBetween($string, $start, $end) {
107107
108108
/* Updates button database entries */
109109
Schema::disableForeignKeyConstraints();
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-
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) {}
124114
Schema::enableForeignKeyConstraints();
125115
126116
try {

0 commit comments

Comments
 (0)