-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathupdate_com.woltlab.wcf_6.2_step2.php
More file actions
36 lines (33 loc) · 1.27 KB
/
update_com.woltlab.wcf_6.2_step2.php
File metadata and controls
36 lines (33 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Updates the database layout during the update from 6.1 to 6.2.
*
* @author Olaf Braun
* @copyright 2001-2024 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
use wcf\system\database\table\column\MediumtextDatabaseTableColumn;
use wcf\system\database\table\column\NotNullVarchar255DatabaseTableColumn;
use wcf\system\database\table\column\TextDatabaseTableColumn;
use wcf\system\database\table\column\TinyintDatabaseTableColumn;
use wcf\system\database\table\PartialDatabaseTable;
return [
PartialDatabaseTable::create('wcf1_contact_option')
->columns([
MediumtextDatabaseTableColumn::create('defaultValue')
->drop(),
TextDatabaseTableColumn::create('validationPattern')
->drop(),
MediumtextDatabaseTableColumn::create('selectOptions')
->drop(),
TinyintDatabaseTableColumn::create('required')
->drop(),
]),
PartialDatabaseTable::create('wcf1_captcha_question')
->columns([
NotNullVarchar255DatabaseTableColumn::create('question')
->drop(),
MediumtextDatabaseTableColumn::create('answers')
->drop(),
]),
];