From 1e9423a7cd11118cc20fa0b62c08bf653bd1c183 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 10 May 2023 10:13:00 +0200 Subject: [PATCH] Mark the first time setup as completed on upgrade Resolves #5500 --- com.woltlab.wcf/package.xml | 1 + ...com.woltlab.wcf_6.0_skipFirstTimeSetup.php | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 4c467f3c0f..3cf90c08b9 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -79,6 +79,7 @@ tar cvf com.woltlab.wcf/files_pre_check.tar -C wcfsetup/install/files/ \ + acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php acp/update_com.woltlab.wcf_6.0_landingPage.php diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php new file mode 100644 index 0000000000..1a281a153b --- /dev/null +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php @@ -0,0 +1,23 @@ + + */ + +use wcf\data\option\Option; +use wcf\data\option\OptionAction; + +$objectAction = new OptionAction( + [], + 'updateAll', + [ + 'data' => [ + Option::getOptionByName('first_time_setup_state')->optionID => -1, + ], + ] +); +$objectAction->executeAction(); -- 2.20.1