Fix instructions in update_com.woltlab.wcf_6.0.php
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 26 May 2023 07:58:30 +0000 (09:58 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 26 May 2023 07:58:30 +0000 (09:58 +0200)
The `->notNull()` was missing, but we can just use the semantically more
correct “bool” type column.

wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.0.php

index a074895c0ef5f8c9e38e10fe87222e3ae6751012..0374a31179bccbc5e58b359718596942ff1a4974 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 use wcf\system\database\table\column\BigintDatabaseTableColumn;
+use wcf\system\database\table\column\DefaultFalseBooleanDatabaseTableColumn;
 use wcf\system\database\table\column\EnumDatabaseTableColumn;
 use wcf\system\database\table\column\MediumtextDatabaseTableColumn;
 use wcf\system\database\table\column\NotNullInt10DatabaseTableColumn;
@@ -100,8 +101,7 @@ return [
         ->columns([
             EnumDatabaseTableColumn::create('apiVersion')
                 ->drop(),
-            TinyintDatabaseTableColumn::create('hasDarkMode')
-                ->defaultValue(0),
+            DefaultFalseBooleanDatabaseTableColumn::create('hasDarkMode'),
         ]),
     PartialDatabaseTable::create('wcf1_style_variable')
         ->columns([