diff --git a/Setup/UpgradeData.php b/Setup/UpgradeData.php index 78e30917..36f7f893 100644 --- a/Setup/UpgradeData.php +++ b/Setup/UpgradeData.php @@ -52,7 +52,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface { $setup->startSetup(); - if (version_compare($context->getVersion(), '2.0.0', '=<')) { + if (version_compare($context->getVersion(), '2.0.0', '<=')) { $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); $this->ensureCrosssellTemplateAttribute($eavSetup); $this->ensureUpsellTemplateAttribute($eavSetup);