| Total Complexity | 3 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class m5_add_topic_blocks extends \phpbb\db\migration\migration |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @inheritdoc |
||
| 18 | */ |
||
| 19 | public static function depends_on() |
||
| 20 | { |
||
| 21 | return array( |
||
| 22 | '\blitze\content\migrations\v30x\m1_initial_schema', |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Update the sm_content_types schema |
||
| 28 | * |
||
| 29 | * @return array Array of table schema |
||
| 30 | * @access public |
||
| 31 | */ |
||
| 32 | public function update_schema() |
||
| 33 | { |
||
| 34 | return array( |
||
| 35 | 'add_columns' => array( |
||
| 36 | $this->table_prefix . 'sm_content_types' => array( |
||
| 37 | 'topic_blocks' => array('VCHAR:255', '', 'after' => 'content_view_settings'), |
||
| 38 | ), |
||
| 39 | ), |
||
| 40 | 'drop_columns' => array( |
||
| 41 | $this->table_prefix . 'sm_content_types' => array( |
||
| 42 | 'show_poster_info', |
||
| 43 | 'show_poster_contents', |
||
| 44 | ), |
||
| 45 | ), |
||
| 46 | ); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | public function revert_schema() |
||
| 64 | ), |
||
| 65 | ), |
||
| 66 | ); |
||
| 69 |