<!-- Make all the new options available as early as possible. -->
<instruction type="option" run="standalone" />
+ <instruction type="script" run="standalone">acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php</instruction>
<!-- Run before the database migrations, because the data is gone otherwise. -->
<instruction type="script" run="standalone">acp/update_com.woltlab.wcf_6.0_landingPage.php</instruction>
--- /dev/null
+<?php
+
+/**
+ * Marks the first time setup as completed during the upgrade.
+ *
+ * @author Tim Duesterhus
+ * @copyright 2001-2023 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ */
+
+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();