Skip to content

Commit

Permalink
Fixed missing execution of discount uses in upgrade command.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Jun 16, 2023
1 parent a9d7821 commit ef4d650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Fixed a bug where Commerce wasn’t invoking `craft\services\Elements::EVENT_AUTHORIZE_*` event handlers.
- Fixed a bug where discounts’ per user usage counters weren’t getting migrated properly when upgrading to Commerce 4.

## 4.2.11 - 2023-06-05

Expand Down
1 change: 1 addition & 0 deletions src/console/controllers/UpgradeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ public function _migrateDiscountUses()
set [[du.customerId]] = [[cu.customerId]]
SQL;
}
Craft::$app->getDb()->createCommand($sql)->execute();
}

/**
Expand Down

0 comments on commit ef4d650

Please sign in to comment.