Skip to content

Commit 1a5992e

Browse files
committed
Check for versions less than 2.0.0 when upgrading
1 parent 42f23ed commit 1a5992e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Setup/UpgradeSchema.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class UpgradeSchema implements UpgradeSchemaInterface
1919

2020
public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context)
2121
{
22-
if (version_compare($context->getVersion(), '2.0.0', '>')) {
22+
if (version_compare($context->getVersion(), '2.0.0', '<')) {
2323
$installer = $setup;
2424
$installer->startSetup();
2525

0 commit comments

Comments
 (0)