@@ 12-27 (lines=16) @@ | ||
9 | ||
10 | namespace tas2580\socialbuttons\migrations; |
|
11 | ||
12 | class release_0_3_0_data extends \phpbb\db\migration\migration |
|
13 | { |
|
14 | public function effectively_installed() |
|
15 | { |
|
16 | return isset($this->config['socialbuttons_version']) && version_compare($this->config['socialbuttons_version'], '0.3.0', '>='); |
|
17 | } |
|
18 | ||
19 | public function update_data() |
|
20 | { |
|
21 | return array( |
|
22 | // Add configs |
|
23 | array('config.add', array('socialbuttons_style', '1')), |
|
24 | array('config.add', array('socialbuttons_version', '0.3.0')), |
|
25 | ); |
|
26 | } |
|
27 | } |
|
28 |
@@ 12-26 (lines=15) @@ | ||
9 | ||
10 | namespace tas2580\socialbuttons\migrations; |
|
11 | ||
12 | class release_0_4_0_data extends \phpbb\db\migration\migration |
|
13 | { |
|
14 | public function effectively_installed() |
|
15 | { |
|
16 | return isset($this->config['socialbuttons_version']) && version_compare($this->config['socialbuttons_version'], '0.4.0', '>='); |
|
17 | } |
|
18 | ||
19 | public function update_data() |
|
20 | { |
|
21 | return array( |
|
22 | array('config.add', array('socialbuttons_showshares', '1')), |
|
23 | array('config.add', array('socialbuttons_version', '0.4.0')), |
|
24 | ); |
|
25 | } |
|
26 | } |
|
27 |