mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-21 13:47:20 +02:00
Bugfix
This commit is contained in:
parent
5037adae46
commit
40823da42a
@ -79,13 +79,14 @@ use Illuminate\Support\Facades\Schema;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Updates button database entries */
|
/* Updates button database entries */
|
||||||
Artisan::call('migrate');
|
|
||||||
Schema::disableForeignKeyConstraints();
|
Schema::disableForeignKeyConstraints();
|
||||||
DB::table('buttons')->delete();
|
try {Artisan::call('migrate');} catch (exception $e) {}
|
||||||
DB::table('buttons')->truncate();
|
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) {}
|
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}
|
||||||
Schema::enableForeignKeyConstraints();
|
Schema::enableForeignKeyConstraints();
|
||||||
|
|
||||||
|
try {
|
||||||
DB::table('link_types')->updateOrInsert([
|
DB::table('link_types')->updateOrInsert([
|
||||||
'typename' => 'text',
|
'typename' => 'text',
|
||||||
'title' => 'Text',
|
'title' => 'Text',
|
||||||
@ -101,6 +102,7 @@ use Illuminate\Support\Facades\Schema;
|
|||||||
}
|
}
|
||||||
]'
|
]'
|
||||||
]);
|
]);
|
||||||
|
} catch (exception $e) {}
|
||||||
|
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"0; " . url()->current() . "?success\" />";
|
echo "<meta http-equiv=\"refresh\" content=\"0; " . url()->current() . "?success\" />";
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user