| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class m8_implemented_version extends \phpbb\db\migration\migration |
||
| 14 | { |
||
| 15 | public function effectively_installed() |
||
| 16 | { |
||
| 17 | return $this->db_tools->sql_column_exists($this->table_prefix . 'ideas_ideas', 'implemented_version'); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function depends_on() |
||
| 21 | { |
||
| 22 | return array( |
||
| 23 | '\phpbb\ideas\migrations\m1_initial_schema', |
||
| 24 | '\phpbb\ideas\migrations\m4_update_statuses', |
||
| 25 | '\phpbb\ideas\migrations\m6_migrate_old_tables', |
||
| 26 | '\phpbb\ideas\migrations\m7_drop_old_tables', |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function update_schema() |
||
| 31 | { |
||
| 32 | return array( |
||
| 33 | 'add_columns' => array( |
||
| 34 | $this->table_prefix . 'ideas_ideas' => array( |
||
| 35 | 'implemented_version' => array('VCHAR', ''), |
||
| 36 | ), |
||
| 37 | ), |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function revert_schema() |
||
| 47 | ), |
||
| 48 | ), |
||
| 49 | ); |
||
| 50 | } |
||
| 52 |