mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-03-07 04:57:41 +01:00
bugfix
test https://github.com/JulianPrieber/littlelink-custom/issues/373
This commit is contained in:
parent
b02bb34ad3
commit
158f28e2fc
@ -107,10 +107,20 @@ use Illuminate\Support\Facades\File;
|
|||||||
|
|
||||||
/* Updates button database entries */
|
/* Updates button database entries */
|
||||||
Schema::disableForeignKeyConstraints();
|
Schema::disableForeignKeyConstraints();
|
||||||
try {Artisan::call('migrate');} catch (exception $e) {}
|
|
||||||
try {DB::table('buttons')->delete();} catch (exception $e) {}
|
// Run migrations
|
||||||
try {DB::table('buttons')->truncate();} catch (exception $e) {}
|
Schema::dropIfExists('buttons');
|
||||||
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}
|
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();
|
Schema::enableForeignKeyConstraints();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user