File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 99 */
1010
1111use wcf \system \database \table \column \DefaultFalseBooleanDatabaseTableColumn ;
12+ use wcf \system \database \table \column \NotNullVarchar255DatabaseTableColumn ;
13+ use wcf \system \database \table \column \SmallintDatabaseTableColumn ;
1214use wcf \system \database \table \PartialDatabaseTable ;
1315
1416return [
1517 PartialDatabaseTable::create ('wcf1_label_group ' )
1618 ->columns ([
1719 DefaultFalseBooleanDatabaseTableColumn::create ('sortAlphabetically ' )
1820 ]),
21+ PartialDatabaseTable::create ('wcf1_trophy ' )
22+ ->columns ([
23+ NotNullVarchar255DatabaseTableColumn::create ('title ' ),
24+ SmallintDatabaseTableColumn::create ('type ' )
25+ ->notNull ()
26+ ->defaultValue (1 ),
27+ ]),
1928];
Original file line number Diff line number Diff line change 2424 * @since 3.1
2525 *
2626 * @property-read int $trophyID unique id for the trophy
27- * @property-read ? string $title
27+ * @property-read string $title
2828 * @property-read ?string $description
2929 * @property-read int $categoryID
30- * @property-read ? int $type
30+ * @property-read int $type
3131 * @property-read ?string $iconFile
3232 * @property-read ?string $iconName
3333 * @property-read ?string $iconColor
Original file line number Diff line number Diff line change 36593659 DatabaseTable::create ('wcf1_trophy ' )
36603660 ->columns ([
36613661 ObjectIdDatabaseTableColumn::create ('trophyID ' ),
3662- VarcharDatabaseTableColumn::create ('title ' )
3663- ->length (255 ),
3662+ NotNullVarchar255DatabaseTableColumn::create ('title ' ),
36643663 MediumtextDatabaseTableColumn::create ('description ' ),
36653664 NotNullInt10DatabaseTableColumn::create ('categoryID ' ),
36663665 SmallintDatabaseTableColumn::create ('type ' )
3666+ ->notNull ()
36673667 ->defaultValue (1 ),
36683668 MediumtextDatabaseTableColumn::create ('iconFile ' ),
36693669 VarcharDatabaseTableColumn::create ('iconName ' )
You can’t perform that action at this time.
0 commit comments