Add database/update_com.woltlab.wcf_5.6.php
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 13:09:30 +0000 (15:09 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 13:09:30 +0000 (15:09 +0200)
wcfsetup/install/files/acp/database/update_com.woltlab.wcf_5.6.php [new file with mode: 0644]

diff --git a/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_5.6.php b/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_5.6.php
new file mode 100644 (file)
index 0000000..5468096
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * Updates the database layout during the update from 5.5 to 5.6.
+ *
+ * @author Tim Duesterhus
+ * @copyright 2001-2022 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core
+ */
+
+use wcf\system\database\table\column\TinyintDatabaseTableColumn;
+use wcf\system\database\table\PartialDatabaseTable;
+
+return [
+    PartialDatabaseTable::create('wcf1_page')
+        ->columns([
+            TinyintDatabaseTableColumn::create('isLandingPage')
+                ->drop(),
+        ]),
+];