mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-16 20:11:01 +01:00
Revert "bugfix"
This reverts commit 158f28e2fcb0ee3a4648769740bdcf6eb3b01c1d.
This commit is contained in:
parent
158f28e2fc
commit
ae23e162c9
@ -107,20 +107,10 @@ use Illuminate\Support\Facades\File;
|
|||||||
|
|
||||||
/* Updates button database entries */
|
/* Updates button database entries */
|
||||||
Schema::disableForeignKeyConstraints();
|
Schema::disableForeignKeyConstraints();
|
||||||
|
try {Artisan::call('migrate');} catch (exception $e) {}
|
||||||
// Run migrations
|
try {DB::table('buttons')->delete();} catch (exception $e) {}
|
||||||
Schema::dropIfExists('buttons');
|
try {DB::table('buttons')->truncate();} catch (exception $e) {}
|
||||||
Schema::create('buttons', function (Blueprint $table) {
|
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}
|
||||||
// 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