Skip to content

Commit

Permalink
Merge pull request #193 from michielgerritsen/bugfix/disable-mybank-b…
Browse files Browse the repository at this point in the history
…y-default

Check the active flag on every upgrade
  • Loading branch information
Marvin-Magmodules authored Aug 22, 2019
2 parents 271aa9f + bb81d8d commit 4464a0c
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 4464a0c

Please sign in to comment.