Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
test

#373
  • Loading branch information
JulianPrieber committed Mar 21, 2023
1 parent b02bb34 commit 158f28e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions resources/views/components/finishing.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,20 @@ function getStringBetween($string, $start, $end) {
/* Updates button database entries */
Schema::disableForeignKeyConstraints();
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) {}
// Run migrations
Schema::dropIfExists('buttons');
Schema::create('buttons', function (Blueprint $table) {
// Define table columns here
});
// Clear button table
DB::table('buttons')->truncate();
// Seed button table
$seeder = new ButtonSeeder();
$seeder->run();
Schema::enableForeignKeyConstraints();
try {
Expand Down

0 comments on commit 158f28e

Please sign in to comment.