use wcf\system\database\table\column\NotNullVarchar255DatabaseTableColumn;
use wcf\system\database\table\column\ObjectIdDatabaseTableColumn;
use wcf\system\database\table\DatabaseTable;
+use wcf\system\database\table\index\DatabaseTablePrimaryIndex;
return [
DatabaseTable::create('wcf1_person')
ObjectIdDatabaseTableColumn::create('personID'),
NotNullVarchar255DatabaseTableColumn::create('firstName'),
NotNullVarchar255DatabaseTableColumn::create('lastName'),
+ ])
+ ->indices([
+ DatabaseTablePrimaryIndex::create()
+ ->columns(['personID']),
]),
];
use wcf\system\database\table\column\ObjectIdDatabaseTableColumn;
use wcf\system\database\table\column\SmallintDatabaseTableColumn;
use wcf\system\database\table\DatabaseTable;
+use wcf\system\database\table\index\DatabaseTablePrimaryIndex;
return [
DatabaseTable::create('wcf1_person')
->notNull()
->defaultValue(0),
DefaultTrueBooleanDatabaseTableColumn::create('enableComments'),
+ ])
+ ->indices([
+ DatabaseTablePrimaryIndex::create()
+ ->columns(['personID']),
]),
];
use wcf\system\database\table\column\ObjectIdDatabaseTableColumn;
use wcf\system\database\table\column\SmallintDatabaseTableColumn;
use wcf\system\database\table\DatabaseTable;
+use wcf\system\database\table\index\DatabaseTablePrimaryIndex;
return [
DatabaseTable::create('wcf1_person')
->notNull()
->defaultValue(0),
DefaultTrueBooleanDatabaseTableColumn::create('enableComments'),
+ ])
+ ->indices([
+ DatabaseTablePrimaryIndex::create()
+ ->columns(['personID']),
]),
];
use wcf\system\database\table\column\VarcharDatabaseTableColumn;
use wcf\system\database\table\DatabaseTable;
use wcf\system\database\table\index\DatabaseTableForeignKey;
+use wcf\system\database\table\index\DatabaseTablePrimaryIndex;
return [
DatabaseTable::create('wcf1_person')
->notNull()
->defaultValue(0),
DefaultTrueBooleanDatabaseTableColumn::create('enableComments'),
+ ])
+ ->indices([
+ DatabaseTablePrimaryIndex::create()
+ ->columns(['personID']),
]),
DatabaseTable::create('wcf1_person_information')
->defaultValue(''),
NotNullInt10DatabaseTableColumn::create('time'),
])
+ ->indices([
+ DatabaseTablePrimaryIndex::create()
+ ->columns(['informationID']),
+ ])
->foreignKeys([
DatabaseTableForeignKey::create()
->columns(['personID'])
use wcf\system\database\table\column\VarcharDatabaseTableColumn;
use wcf\system\database\table\DatabaseTable;
use wcf\system\database\table\index\DatabaseTableForeignKey;
+use wcf\system\database\table\index\DatabaseTablePrimaryIndex;
return [
DatabaseTable::create('wcf1_person')
->notNull()
->defaultValue(0),
DefaultTrueBooleanDatabaseTableColumn::create('enableComments'),
+ ])
+ ->indices([
+ DatabaseTablePrimaryIndex::create()
+ ->columns(['personID']),
]),
DatabaseTable::create('wcf1_person_information')
->defaultValue(''),
NotNullInt10DatabaseTableColumn::create('time'),
])
+ ->indices([
+ DatabaseTablePrimaryIndex::create()
+ ->columns(['informationID']),
+ ])
->foreignKeys([
DatabaseTableForeignKey::create()
->columns(['personID'])