Use fixed `userID` for the admin user in WCFSetup
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 24 Aug 2023 08:00:10 +0000 (10:00 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 24 Aug 2023 08:02:06 +0000 (10:02 +0200)
In case of a non-standard `auto_increment_offset` / `auto_increment_increment`
the automatically assigned userID might not be `1`, thus causing the
`installPackages` step to fail to fetch the user.

wcfsetup/install/files/lib/system/WCFSetup.class.php

index f954846f3650b731ce6147392fe4aef915e088bb..2a39c816480e7a8814ab3b73dde8d1e471bd51f4 100644 (file)
@@ -907,6 +907,7 @@ final class WCFSetup extends WCF
                 // create user
                 $data = [
                     'data' => [
+                        'userID' => 1,
                         'email' => $email,
                         'languageID' => $languageID,
                         'password' => $password,