Moved the SQL-Log column into a separate update SQL
authorAlexander Ebert <ebert@woltlab.com>
Sun, 29 Sep 2019 14:56:37 +0000 (16:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 29 Sep 2019 14:56:37 +0000 (16:56 +0200)
com.woltlab.wcf/update_5.2_pre_sql_api.sql [new file with mode: 0644]
wcfsetup/install/files/acp/update-com.woltlab.wcf_5.2.0_beta_2.php

diff --git a/com.woltlab.wcf/update_5.2_pre_sql_api.sql b/com.woltlab.wcf/update_5.2_pre_sql_api.sql
new file mode 100644 (file)
index 0000000..5a01b36
--- /dev/null
@@ -0,0 +1,2 @@
+-- The database API requires this column in order to work properly. DO NOT MOVE THIS! 
+ALTER TABLE wcf1_package_installation_sql_log ADD COLUMN isDone TINYINT(1) NOT NULL DEFAULT 1;
index 44f48fe4c2583bebee3de89fd61edb12bf4abdcf..e2020af621642b88b0db3468ac1883587df2f264 100644 (file)
@@ -18,11 +18,6 @@ use wcf\system\WCF;
  */
 
 $tables = [
-       DatabaseTable::create('wcf1_package_installation_sql_log')
-               ->columns([
-                       DefaultTrueBooleanDatabaseTableColumn::create('isDone'),
-               ]),
-       
        DatabaseTable::create('wcf1_reaction_type')
                ->columns([
                        NotNullVarchar255DatabaseTableColumn::create('title'),