Fix MFA SQL update instructions in update_com.woltlab.wcf_5.4_db.php
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 Nov 2020 09:52:34 +0000 (10:52 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 Nov 2020 10:03:24 +0000 (11:03 +0100)
wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_db.php

index 506c389907995ea7bc526f00e0046adef3c8aaaa..e818cffc46c5b6011fa8d1e2ab95d4f092298086 100644 (file)
@@ -58,7 +58,7 @@ $tables = [
                ])
                ->indices([
                        DatabaseTablePrimaryIndex::create()
-                               ->columns(['logID']),
+                               ->columns(['setupID']),
                        DatabaseTableIndex::create()
                                ->type(DatabaseTableIndex::UNIQUE_TYPE)
                                ->columns(['userID', 'objectTypeID']),
@@ -128,8 +128,9 @@ $tables = [
                                ->length(255),
                        NotNullInt10DatabaseTableColumn::create('minCounter'),
                        NotNullInt10DatabaseTableColumn::create('createTime'),
-                       IntDatabaseTableColumn::create('createTime')
+                       IntDatabaseTableColumn::create('useTime')
                                ->length(10)
+                               ->notNull(false)
                                ->defaultValue(null),
                ])
                ->indices([