1 | <?php |
||
15 | class m8_remove_config_table extends \phpbb\db\migration\migration |
||
16 | { |
||
17 | /** |
||
18 | * @inheritdoc |
||
19 | */ |
||
20 | public static function depends_on() |
||
21 | { |
||
22 | return array( |
||
23 | '\blitze\sitemaker\migrations\v20x\m1_initial_schema', |
||
24 | '\blitze\sitemaker\migrations\v20x\m7_update_settings_data', |
||
25 | ); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Skip this migration if the sm_blocks_config table does not exist |
||
30 | * |
||
31 | * @return bool True to skip this migration, false to run it |
||
32 | * @access public |
||
33 | */ |
||
34 | public function effectively_installed() |
||
35 | { |
||
36 | return !$this->db_tools->sql_table_exists($this->table_prefix . 'sm_blocks_config'); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Update the sm_blocks schema |
||
41 | * |
||
42 | * @return array Array of table schema |
||
43 | * @access public |
||
44 | */ |
||
45 | public function update_schema() |
||
46 | { |
||
47 | return array( |
||
48 | 'drop_tables' => array( |
||
49 | $this->table_prefix . 'sm_blocks_config', |
||
50 | ), |
||
51 | ); |
||
52 | } |
||
53 | } |
||
54 |