Skip to content

Commit

Permalink
Check the active flag on every upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Aug 14, 2019
1 parent f070c67 commit bb81d8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,13 @@ public function upgrade(
$this->removeBitcoinConfiguration();
}

if (version_compare($context->getVersion(), '1.6.1', '<')) {
$this->upgradeActiveState();
}

if (version_compare($context->getVersion(), '1.6.2', '<')) {
$this->addIndexes($setup);
}

// This should run every time
$this->upgradeActiveState();

$setup->endSetup();
}

Expand Down

0 comments on commit bb81d8d

Please sign in to comment.