1 | <?php |
||
12 | class beta1 extends \phpbb\db\migration\migration |
||
13 | { |
||
14 | /** @var int quickedit forums flag */ |
||
15 | const QUICKEDIT_FLAG = 128; |
||
16 | |||
17 | public function effectively_installed() |
||
21 | |||
22 | public function update_schema() |
||
23 | { |
||
24 | return array( |
||
25 | 'change_columns' => array( |
||
26 | $this->table_prefix . 'forums' => array( |
||
27 | 'forum_flags' => array('UINT', 32), |
||
28 | ), |
||
29 | ), |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | public function revert_schema() |
||
34 | { |
||
35 | return array( |
||
36 | 'change_columns' => array( |
||
37 | $this->table_prefix . 'forums' => array( |
||
38 | 'forum_flags' => array('TINT:4', 32), |
||
39 | ), |
||
40 | ), |
||
41 | ); |
||
42 | } |
||
43 | |||
44 | static public function depends_on() |
||
48 | |||
49 | public function update_data() |
||
55 | |||
56 | public function revert_data() |
||
62 | |||
63 | public function revert_forum_flags() |
||
78 | } |
||
79 |