use wcf\system\database\table\column\EnumDatabaseTableColumn;
use wcf\system\database\table\column\IntDatabaseTableColumn;
use wcf\system\database\table\column\NotNullInt10DatabaseTableColumn;
+use wcf\system\database\table\column\NotNullVarchar191DatabaseTableColumn;
use wcf\system\database\table\column\NotNullVarchar255DatabaseTableColumn;
use wcf\system\database\table\column\ObjectIdDatabaseTableColumn;
use wcf\system\database\table\column\TextDatabaseTableColumn;
DatabaseTable::create('wcf1_user_multifactor_backup')
->columns([
NotNullInt10DatabaseTableColumn::create('setupID'),
- NotNullVarchar255DatabaseTableColumn::create('identifier'),
+ NotNullVarchar191DatabaseTableColumn::create('identifier'),
NotNullVarchar255DatabaseTableColumn::create('code'),
NotNullInt10DatabaseTableColumn::create('createTime'),
IntDatabaseTableColumn::create('useTime')
DatabaseTable::create('wcf1_user_multifactor_email')
->columns([
NotNullInt10DatabaseTableColumn::create('setupID'),
- NotNullVarchar255DatabaseTableColumn::create('code'),
+ NotNullVarchar191DatabaseTableColumn::create('code'),
NotNullInt10DatabaseTableColumn::create('createTime'),
])
->indices([
DatabaseTable::create('wcf1_user_multifactor_totp')
->columns([
NotNullInt10DatabaseTableColumn::create('setupID'),
- NotNullVarchar255DatabaseTableColumn::create('deviceID'),
+ NotNullVarchar191DatabaseTableColumn::create('deviceID'),
NotNullVarchar255DatabaseTableColumn::create('deviceName'),
VarbinaryDatabaseTableColumn::create('secret')
->notNull()
DROP TABLE IF EXISTS wcf1_user_multifactor_backup;
CREATE TABLE wcf1_user_multifactor_backup (
setupID INT(10) NOT NULL,
- identifier VARCHAR(255) NOT NULL,
+ identifier VARCHAR(191) NOT NULL,
code VARCHAR(255) NOT NULL,
createTime INT(10) NOT NULL,
useTime INT(10) DEFAULT NULL,
DROP TABLE IF EXISTS wcf1_user_multifactor_email;
CREATE TABLE wcf1_user_multifactor_email (
setupID INT(10) NOT NULL,
- code VARCHAR(255) NOT NULL,
+ code VARCHAR(191) NOT NULL,
createTime INT(10) NOT NULL,
UNIQUE KEY (setupID, code)
DROP TABLE IF EXISTS wcf1_user_multifactor_totp;
CREATE TABLE wcf1_user_multifactor_totp (
setupID INT(10) NOT NULL,
- deviceID VARCHAR(255) NOT NULL,
+ deviceID VARCHAR(191) NOT NULL,
deviceName VARCHAR(255) NOT NULL,
secret VARBINARY(255) NOT NULL,
minCounter INT(10) NOT NULL,