mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-18 04:51:00 +01:00
Update button database entry on update
This commit is contained in:
parent
f2ca9ba8cf
commit
0c9b05b185
@ -35,5 +35,12 @@
|
|||||||
if(EnvEditor::keyExists('FORCE_HTTPS')){ /* Do nothing if key already exists */
|
if(EnvEditor::keyExists('FORCE_HTTPS')){ /* Do nothing if key already exists */
|
||||||
} else {EnvEditor::addKey('FORCE_HTTPS', 'false');}
|
} else {EnvEditor::addKey('FORCE_HTTPS', 'false');}
|
||||||
|
|
||||||
|
/* Updates button database entries */
|
||||||
|
Schema::disableForeignKeyConstraints();
|
||||||
|
DB::table('buttons')->delete();
|
||||||
|
DB::table('buttons')->truncate();
|
||||||
|
Artisan::call('db:seed --class="ButtonSeeder"');
|
||||||
|
Schema::enableForeignKeyConstraints();
|
||||||
|
|
||||||
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