}
}
else if (!in_array($tableName, $this->existingTableNames)) {
+ if ($table instanceof PartialDatabaseTable) {
+ throw new \LogicException("Partial table '{$tableName}' cannot be created.");
+ }
+
$this->tablesToCreate[] = $table;
$this->splitNodeMessage .= "Created table '{$tableName}'.";
--- /dev/null
+<?php
+namespace wcf\system\database\table;
+
+/**
+ * PHP representation of layout changes to an existing database table.
+ *
+ * Trying to create a table represented by this class causes an exception.
+ *
+ * @author Matthias Schmidt
+ * @copyright 2001-2019 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\Database\Table
+ * @since 5.2
+ */
+class PartialDatabaseTable extends DatabaseTable {}