|
@@ -60,13 +60,13 @@ |
|
|
block discarded – undo |
|
60
|
60
|
*/ |
|
61
|
61
|
public function update(UpdateContext $context) |
|
62
|
62
|
{ |
|
63
|
|
- if(version_compare($context->getCurrentVersion(), '2.0.0', '<')) { |
|
|
63
|
+ if (version_compare($context->getCurrentVersion(), '2.0.0', '<')) { |
|
64
|
64
|
$sql = file_get_contents($this->getPath() . '/Resources/sql/install.sql'); |
|
65
|
65
|
|
|
66
|
66
|
$this->container->get('shopware.db')->query($sql); |
|
67
|
67
|
} |
|
68
|
68
|
|
|
69
|
|
- if(version_compare(\Shopware::VERSION, '5.2.25', '>=')){ |
|
|
69
|
+ if (version_compare(\Shopware::VERSION, '5.2.25', '>=')) { |
|
70
|
70
|
$this->container->get('shopware.db')->query( |
|
71
|
71
|
'UPDATE `wbm_data_layer_properties` SET `value` = "{0|currency:USE_SHORTNAME:LEFT|truncate:3:\'\'}" WHERE `value` = "{0|currency:USE_SHORTNAME:LEFT|substr:0:3}"' |
|
72
|
72
|
); |
Please login to merge, or discard this patch.