From: Tim Düsterhus Date: Mon, 12 Apr 2021 10:09:58 +0000 (+0200) Subject: Add the update of wcf1_event_listener to update_com.woltlab.wcf_5.3.php X-Git-Tag: 5.3.6~13^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3cb525f0d3bb569f72e6733d7db68522d234d9f;p=GitHub%2FWoltLab%2FWCF.git Add the update of wcf1_event_listener to update_com.woltlab.wcf_5.3.php … and restore update_com.woltlab.wcf_5.3.3_db.php for the users that upgraded from 5.2.x to 5.3.3+. --- diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 14f1210d5f..6e8dcbc8c2 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -106,14 +106,7 @@ acp/update_com.woltlab.wcf_5.3_packageServer.php - - acptemplates_update.tar - files_update.tar - templates_update.tar - - - - - + + acp/update_com.woltlab.wcf_5.3.3_db.php diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.3_db.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.3_db.php new file mode 100644 index 0000000000..387d26ac8a --- /dev/null +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.3_db.php @@ -0,0 +1,30 @@ + + */ + +$tables = [ + PartialDatabaseTable::create('wcf1_event_listener') + ->columns([ + EnumDatabaseTableColumn::create('environment') + ->enumValues(['user', 'admin', 'all']) + ]), +]; + +(new DatabaseTableChangeProcessor( +/** @var ScriptPackageInstallationPlugin $this */ + $this->installation->getPackage(), + $tables, + WCF::getDB()->getEditor()) +)->process(); diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.php index b70f5140ed..c77c206d11 100644 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.php +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3.php @@ -1,6 +1,7 @@ referencedColumns(['languageID']) ->onDelete('SET NULL') ]), + PartialDatabaseTable::create('wcf1_event_listener') + ->columns([ + EnumDatabaseTableColumn::create('environment') + ->enumValues(['user', 'admin', 'all']) + ]), PartialDatabaseTable::create('wcf1_media') ->columns([ NotNullInt10DatabaseTableColumn::create('fileUpdateTime')