From: Tim Düsterhus Date: Fri, 26 May 2023 07:58:30 +0000 (+0200) Subject: Fix instructions in update_com.woltlab.wcf_6.0.php X-Git-Tag: 6.0.0_Alpha_1~73 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a51ec7cfcec7fba9d435f86118b26a23f1abe01;p=GitHub%2FWoltLab%2FWCF.git Fix instructions in update_com.woltlab.wcf_6.0.php The `->notNull()` was missing, but we can just use the semantically more correct “bool” type column. --- 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([