From: Tim Düsterhus Date: Mon, 25 Jan 2021 12:05:50 +0000 (+0100) Subject: Apply the wcf1_event_listener database migration in 5.4 as well X-Git-Tag: 5.4.0_Alpha_1~391 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3defd8fd276e17db64d261dee805e3df35d6bca2;p=GitHub%2FWoltLab%2FWCF.git Apply the wcf1_event_listener database migration in 5.4 as well see d836d365d30d44c6140dda17f82b9bd245db03e9 --- diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_db.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_db.php index ae96518da8..ddf1ac395a 100644 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_db.php +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_db.php @@ -3,6 +3,7 @@ use wcf\system\database\table\column\BigintDatabaseTableColumn; use wcf\system\database\table\column\BinaryDatabaseTableColumn; use wcf\system\database\table\column\DefaultFalseBooleanDatabaseTableColumn; +use wcf\system\database\table\column\EnumDatabaseTableColumn; use wcf\system\database\table\column\IntDatabaseTableColumn; use wcf\system\database\table\column\NotNullInt10DatabaseTableColumn; use wcf\system\database\table\column\NotNullVarchar255DatabaseTableColumn; @@ -19,6 +20,17 @@ use wcf\system\package\plugin\ScriptPackageInstallationPlugin; use wcf\system\WCF; $tables = [ + // This update script was added with 5.3.3. We need to ensure that the change is applied + // when someone attempts to upgrade from an older 5.3.x for whatever reason. + // If the database already has the proper state this will be a simple noop. + // + // see: https://github.com/WoltLab/WCF/commit/d836d365d30d44c6140dda17f82b9bd245db03e9 + PartialDatabaseTable::create('wcf1_event_listener') + ->columns([ + EnumDatabaseTableColumn::create('environment') + ->enumValues(['user', 'admin', 'all']) + ]), + DatabaseTable::create('wcf1_flood_control') ->columns([ BigintDatabaseTableColumn::create('logID')