Commit | Line | Data |
---|---|---|
78a11ac7 | 1 | <?php |
78a11ac7 AE |
2 | |
3 | /** | |
4 | * @author Alexander Ebert | |
5 | * @copyright 2001-2019 WoltLab GmbH | |
6 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
7 | */ | |
8 | ||
fea86294 TD |
9 | use wcf\system\database\table\column\DefaultFalseBooleanDatabaseTableColumn; |
10 | use wcf\system\database\table\column\DefaultTrueBooleanDatabaseTableColumn; | |
11 | use wcf\system\database\table\DatabaseTable; | |
12 | use wcf\system\database\table\DatabaseTableChangeProcessor; | |
13 | use wcf\system\package\plugin\ScriptPackageInstallationPlugin; | |
14 | use wcf\system\WCF; | |
15 | ||
78a11ac7 | 16 | $tables = [ |
fea86294 TD |
17 | DatabaseTable::create('wcf1_conversation_to_user') |
18 | ->columns([ | |
19 | DefaultTrueBooleanDatabaseTableColumn::create('leftByOwnChoice'), | |
20 | ]), | |
21 | ||
22 | DatabaseTable::create('wcf1_user_group') | |
23 | ->columns([ | |
24 | DefaultFalseBooleanDatabaseTableColumn::create('canBeAddedAsConversationParticipant'), | |
25 | ]), | |
78a11ac7 AE |
26 | ]; |
27 | ||
28 | (new DatabaseTableChangeProcessor( | |
fea86294 TD |
29 | /** @var ScriptPackageInstallationPlugin $this */ |
30 | $this->installation->getPackage(), | |
31 | $tables, | |
32 | WCF::getDB()->getEditor() | |
33 | ) | |
78a11ac7 | 34 | )->process(); |