Skip to content

Commit ac77efe

Browse files
committed
Fixed databse errors when updating
1 parent 30ac613 commit ac77efe

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

resources/views/components/finishing.blade.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,11 @@
2525
if(EnvEditor::keyExists('USE_THEME_PREVIEW_IFRAME')){ /* Do nothing if key already exists */
2626
} else {EnvEditor::addKey('USE_THEME_PREVIEW_IFRAME', 'true');}
2727
28-
if(trim(file_get_contents(base_path("version.json"))) >= '2.9.1' and trim(file_get_contents(base_path("version.json"))) <= '3.0.0'){
29-
Schema::disableForeignKeyConstraints();
30-
Artisan::call('migrate');
31-
Schema::enableForeignKeyConstraints();
32-
}
3328
34-
if(trim(file_get_contents(base_path("version.json"))) >= '2.9.1' and trim(file_get_contents(base_path("version.json"))) <= '3.0.0'){
35-
if(EnvEditor::keyExists('ALLOW_USER_HTML')){EnvEditor::editKey('ALLOW_USER_HTML', 'true');}
36-
}
29+
// Adds database entries
30+
Schema::disableForeignKeyConstraints();
31+
Artisan::call('migrate');
32+
Schema::enableForeignKeyConstraints();
3733
3834
if (!config()->has('advanced-config.expand_panel_admin_menu_permanently') and !config()->has('disable_default_password_notice')) {
3935

0 commit comments

Comments
 (0)