| Total Complexity | 4 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class m5_add_cblocks_schema extends \phpbb\db\migration\migration |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Skip this migration if the sm_cblocks table already exists |
||
| 16 | * |
||
| 17 | * @return bool True to skip this migration, false to run it |
||
| 18 | * @access public |
||
| 19 | */ |
||
| 20 | public function effectively_installed() |
||
| 21 | { |
||
| 22 | return $this->db_tools->sql_table_exists($this->table_prefix . 'sm_cblocks'); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | public static function depends_on() |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | public function update_schema() |
||
| 52 | ), |
||
| 53 | ), |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @inheritdoc |
||
| 59 | */ |
||
| 60 | public function revert_schema() |
||
| 69 |