Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context) |
||
28 | { |
||
29 | $setup->startSetup(); |
||
30 | |||
31 | if (version_compare($context->getVersion(), '7.2.0') < 0) { |
||
32 | $newConfigs = array( |
||
33 | /* INSERT NEW CONFIGS PARAMS HERE:'config'=>'<config>','value'=>'<value>'*/); |
||
34 | foreach ($newConfigs as $config => $value) { |
||
35 | $setup->getConnection()->insert(self::CONFIG_TABLE, array('config'=>$config, 'value'=>$value)); |
||
36 | } |
||
37 | } |
||
38 | |||
39 | $setup->endSetup(); |
||
40 | } |
||
41 | } |