From ae23e162c9a7ffd9963912ee96b465c5e31d5c04 Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Tue, 21 Mar 2023 22:29:04 +0100 Subject: [PATCH] Revert "bugfix" This reverts commit 158f28e2fcb0ee3a4648769740bdcf6eb3b01c1d. --- resources/views/components/finishing.blade.php | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/resources/views/components/finishing.blade.php b/resources/views/components/finishing.blade.php index c00f1df72..0e98bdad8 100644 --- a/resources/views/components/finishing.blade.php +++ b/resources/views/components/finishing.blade.php @@ -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 {