diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index b9025878..9f27c43a 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -227,10 +227,7 @@ class SetupController extends Controller } } - if (! $updateScriptExist) { - // If there is no update script given - Option::set('version', config('app.version')); - } + Option::set('version', config('app.version')); // Clear all compiled view files try { diff --git a/tests/SetupControllerTest.php b/tests/SetupControllerTest.php index fa72a930..2b801a02 100644 --- a/tests/SetupControllerTest.php +++ b/tests/SetupControllerTest.php @@ -215,7 +215,7 @@ class SetupControllerTest extends TestCase config(['options.new_option' => 'value']); $this->post('/setup/update')->assertViewHas('tips'); $this->assertEquals('value', option('new_option')); - $this->assertEquals('3.1.1', option('version')); + $this->assertEquals('100.0.0', option('version')); unlink(database_path("update_scripts/update-$current_version-to-100.0.0.php")); option(['version' => '3.0.0']); // Fake old version