Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class c3_update_tables extends \phpbb\db\migration\migration |
||
16 | { |
||
17 | /** |
||
18 | * Skip this migration if a previous blocks table does not exist |
||
19 | * |
||
20 | * @return bool True to skip this migration, false to run it |
||
21 | * @access public |
||
22 | */ |
||
23 | public function effectively_installed() |
||
24 | { |
||
25 | return !$this->db_tools->sql_table_exists($this->table_prefix . 'content_types'); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | static public function depends_on() |
||
32 | { |
||
33 | return array( |
||
34 | '\blitze\content\migrations\converter\c2_update_data', |
||
35 | ); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Update the table name |
||
40 | * |
||
41 | * @return array Array of table schema |
||
42 | * @access public |
||
43 | */ |
||
44 | public function update_schema() |
||
45 | { |
||
46 | return array( |
||
47 | 'drop_tables' => array( |
||
48 | $this->table_prefix . 'content_types', |
||
49 | ), |
||
50 | 'drop_columns' => array( |
||
51 | $this->table_prefix . 'topics' => array('topic_tag'), |
||
52 | ), |
||
56 |