|
@@ 63-67 (lines=5) @@
|
| 60 |
|
*/ |
| 61 |
|
public function update(UpdateContext $context) |
| 62 |
|
{ |
| 63 |
|
if (version_compare($context->getCurrentVersion(), '2.0.0', '<')) { |
| 64 |
|
$sql = file_get_contents($this->getPath() . '/Resources/sql/install.sql'); |
| 65 |
|
|
| 66 |
|
$this->container->get('shopware.db')->query($sql); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if (version_compare($context->getCurrentVersion(), '2.0.3', '<')) { |
| 70 |
|
$sql = file_get_contents($this->getPath() . '/Resources/sql/update.2.0.3.sql'); |
|
@@ 69-73 (lines=5) @@
|
| 66 |
|
$this->container->get('shopware.db')->query($sql); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if (version_compare($context->getCurrentVersion(), '2.0.3', '<')) { |
| 70 |
|
$sql = file_get_contents($this->getPath() . '/Resources/sql/update.2.0.3.sql'); |
| 71 |
|
|
| 72 |
|
$this->container->get('shopware.db')->query($sql); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
if (version_compare($context->getCurrentVersion(), '2.0.4', '<')) { |
| 76 |
|
$sql = file_get_contents($this->getPath() . '/Resources/sql/update.2.0.4.sql'); |
|
@@ 75-79 (lines=5) @@
|
| 72 |
|
$this->container->get('shopware.db')->query($sql); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
if (version_compare($context->getCurrentVersion(), '2.0.4', '<')) { |
| 76 |
|
$sql = file_get_contents($this->getPath() . '/Resources/sql/update.2.0.4.sql'); |
| 77 |
|
|
| 78 |
|
$this->container->get('shopware.db')->query($sql); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
$context->scheduleClearCache(InstallContext::CACHE_LIST_ALL); |
| 82 |
|
} |