Update button database entry on update

This commit is contained in:
Julian Prieber 2022-07-07 22:57:40 +02:00
parent f2ca9ba8cf
commit 0c9b05b185
1 changed files with 7 additions and 0 deletions

View File

@ -35,5 +35,12 @@
if(EnvEditor::keyExists('FORCE_HTTPS')){ /* Do nothing if key already exists */
} 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\" />";
?>