parent
158f28e2fc
commit
ae23e162c9
|
@ -107,20 +107,10 @@ use Illuminate\Support\Facades\File;
|
|||
|
||||
/* 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 {
|
||||
|
|
Loading…
Reference in New Issue