<instruction type="script">acp/update_com.woltlab.wcf_5.3_packageServer.php</instruction>
</instructions>
- <instructions type="update" fromversion="5.3.4">
- <instruction type="acpTemplate">acptemplates_update.tar</instruction>
- <instruction type="file">files_update.tar</instruction>
- <instruction type="template">templates_update.tar</instruction>
-
- <instruction type="language" />
-
- <instruction type="mediaProvider" />
- <instruction type="objectType" />
+ <instructions type="update" fromversion="5.3.5">
+ <instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.3.3_db.php</instruction>
</instructions>
</package>
--- /dev/null
+<?php
+
+use wcf\system\database\table\column\EnumDatabaseTableColumn;
+use wcf\system\database\table\DatabaseTableChangeProcessor;
+use wcf\system\database\table\PartialDatabaseTable;
+use wcf\system\package\plugin\ScriptPackageInstallationPlugin;
+use wcf\system\WCF;
+
+/**
+ * Updates the database table layout from WoltLab Suite Core 5.3.2 to 5.3.3.
+ *
+ * @author Matthias Schmidt
+ * @copyright 2001-2021 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ */
+
+$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();
<?php
use wcf\system\database\table\column\CharDatabaseTableColumn;
+use wcf\system\database\table\column\EnumDatabaseTableColumn;
use wcf\system\database\table\column\IntDatabaseTableColumn;
use wcf\system\database\table\column\MediumtextDatabaseTableColumn;
use wcf\system\database\table\column\NotNullInt10DatabaseTableColumn;
->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')