| 1 | <?php |
||
| 12 | class c1_update_config extends \phpbb\db\migration\migration |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Skip this migration if the config variable content_forum_id does not exist |
||
| 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 !isset($this->config['content_forum_id']); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function update_data() |
||
| 26 | { |
||
| 27 | return array( |
||
| 28 | array('config.add', array('blitze_content_forum_id', (int) $this->config['content_forum_id'])) |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |