Add wcf1_user_multifactor_email to update_com.woltlab.wcf_5.4_db.php
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 23 Nov 2020 15:55:18 +0000 (16:55 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 23 Nov 2020 15:55:18 +0000 (16:55 +0100)
wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_db.php

index b81521451e4b2514ae1b3e8167143f4a58a0ac13..48e76b5ce6bf720e89de9cf5bfdf8396e8d739c7 100644 (file)
@@ -78,6 +78,18 @@ $tables = [
                                ->type(DatabaseTableIndex::UNIQUE_TYPE)
                                ->columns(['setupID', 'identifier']),
                ]),
+               
+       DatabaseTable::create('wcf1_user_multifactor_email')
+               ->columns([
+                       NotNullInt10DatabaseTableColumn::create('setupID'),
+                       NotNullVarchar255DatabaseTableColumn::create('code'),
+                       NotNullInt10DatabaseTableColumn::create('createTime'),
+               ])
+               ->indices([
+                       DatabaseTableIndex::create()
+                               ->type(DatabaseTableIndex::UNIQUE_TYPE)
+                               ->columns(['setupID', 'code']),
+               ]),
        
        DatabaseTable::create('wcf1_user_multifactor_totp')
                ->columns([