From: Alexander Ebert Date: Sun, 29 Sep 2019 14:50:21 +0000 (+0200) Subject: SQL update 5.2 Beta 1 -> Beta 2 X-Git-Tag: 5.2.0_Beta_2~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f2650cac7340e7386bfecef08a82d1dfe138247;p=GitHub%2FWoltLab%2FWCF.git SQL update 5.2 Beta 1 -> Beta 2 --- diff --git a/wcfsetup/install/files/acp/update-com.woltlab.wcf_5.2.0_beta_2.php b/wcfsetup/install/files/acp/update-com.woltlab.wcf_5.2.0_beta_2.php new file mode 100644 index 0000000000..44f48fe4c2 --- /dev/null +++ b/wcfsetup/install/files/acp/update-com.woltlab.wcf_5.2.0_beta_2.php @@ -0,0 +1,43 @@ + + */ + +$tables = [ + DatabaseTable::create('wcf1_package_installation_sql_log') + ->columns([ + DefaultTrueBooleanDatabaseTableColumn::create('isDone'), + ]), + + DatabaseTable::create('wcf1_reaction_type') + ->columns([ + NotNullVarchar255DatabaseTableColumn::create('title'), + NotNullVarchar255DatabaseTableColumn::create('iconFile') + ->defaultValue(''), + DefaultTrueBooleanDatabaseTableColumn::create('isAssignable'), + + DefaultFalseBooleanDatabaseTableColumn::create('isDisabled') + ->drop() + ]), +]; + +(new DatabaseTableChangeProcessor( + /** @var ScriptPackageInstallationPlugin $this */ + $this->installation->getPackage(), + $tables, + WCF::getDB()->getEditor()) +)->process();