From 2a51ec7cfcec7fba9d435f86118b26a23f1abe01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 26 May 2023 09:58:30 +0200 Subject: [PATCH] Fix instructions in update_com.woltlab.wcf_6.0.php MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The `->notNull()` was missing, but we can just use the semantically more correct “bool” type column. --- .../install/files/acp/database/update_com.woltlab.wcf_6.0.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.0.php b/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.0.php index a074895c0e..0374a31179 100644 --- a/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.0.php +++ b/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.0.php @@ -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([ -- 2.20.1