use wcf\system\database\table\column\DateDatabaseTableColumn;
use wcf\system\database\table\column\DatetimeDatabaseTableColumn;
use wcf\system\database\table\column\DefaultFalseBooleanDatabaseTableColumn;
+use wcf\system\database\table\column\DefaultTrueBooleanDatabaseTableColumn;
use wcf\system\database\table\column\EnumDatabaseTableColumn;
use wcf\system\database\table\column\IntDatabaseTableColumn;
use wcf\system\database\table\column\MediumtextDatabaseTableColumn;
DefaultFalseBooleanDatabaseTableColumn::create('delta2'),
DefaultFalseBooleanDatabaseTableColumn::create('delta3'),
DefaultFalseBooleanDatabaseTableColumn::create('delta4')
+ ])
+ ->indices([
+ DatabaseTableIndex::create('day')
+ ->type(DatabaseTableIndex::UNIQUE_TYPE)
+ ->columns(['date']),
]),
DatabaseTable::create('wcf1_blacklist_entry')
DatabaseTable::create('wcf1_comment')
->columns([
MediumtextDatabaseTableColumn::create('message')
+ ->notNull()
]),
DatabaseTable::create('wcf1_comment_response')
->columns([
MediumtextDatabaseTableColumn::create('message')
+ ->notNull()
]),
DatabaseTable::create('wcf1_contact_attachment')
DatabaseTable::create('wcf1_like')
->columns([
NotNullInt10DatabaseTableColumn::create('reactionTypeID')
- ])
- ->foreignKeys([
- DatabaseTableForeignKey::create()
- ->columns(['reactionTypeID'])
- ->referencedTable('wcf1_reaction_type')
- ->referencedColumns(['reactionTypeID'])
- ->onDelete('CASCADE')
]),
DatabaseTable::create('wcf1_like_object')
->defaultValue(0),
NotNullVarchar255DatabaseTableColumn::create('iconFile')
->defaultValue(''),
- DefaultFalseBooleanDatabaseTableColumn::create('isDisabled')
+ DefaultTrueBooleanDatabaseTableColumn::create('isAssignable')
])
->indices([
DatabaseTablePrimaryIndex::create()
DatabaseTable::create('wcf1_style')
->columns([
EnumDatabaseTableColumn::create('apiVersion')
+ ->notNull()
->enumValues(['3.0', '3.1', '5.2'])
+ ->defaultValue('3.0')
]),
DatabaseTable::create('wcf1_trophy')