Skip to content

Commit ee80f07

Browse files
committed
Check for latest version when upgrading schema
1 parent adc2986 commit ee80f07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
### [Unreleased]
88

9-
### [2.1.1] - 2021-05-07
9+
### [2.1.1] - 2021-05-17
1010

1111
#### Fixes
1212
- Use store ids instead of website ids in the ProductDeleteBefore Observer

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.1.1', '<')) {
2323
$installer = $setup;
2424
$installer->startSetup();
2525

0 commit comments

Comments
 (0)