Skip to content

Commit

Permalink
Revert "bugfix"
Browse files Browse the repository at this point in the history
This reverts commit 158f28e.
  • Loading branch information
JulianPrieber committed Mar 21, 2023
1 parent 158f28e commit ae23e16
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions resources/views/components/finishing.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,10 @@ function getStringBetween($string, $start, $end) {
/* Updates button database entries */
Schema::disableForeignKeyConstraints();
// 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();
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 {
Expand Down

0 comments on commit ae23e16

Please sign in to comment.