-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create migration for old discount #6784
feat: create migration for old discount #6784
Conversation
|
d16e979
to
c4d5dca
Compare
* @param {String} entity - The entity (normally a collection) that you are tracking the ID for | ||
* @return {Promise<Number>} - The auto-incrementing ID to use | ||
*/ | ||
async function incrementSequence(db, shopId, entity) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a function defined in the code already for this, we should not duplicate it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The defined function is in another plugin, and we only have access to ({ db, progress }) so it's not easy to do.
packages/api-plugin-promotions-coupons/migrations/migrationsNamespace.js
Show resolved
Hide resolved
Signed-off-by: vanpho93 <vanpho02@gmail.com>
Signed-off-by: vanpho93 <vanpho02@gmail.com>
6edbcf2
to
919caa1
Compare
Signed-off-by: vanpho93 <vanpho02@gmail.com>
4c6814b
to
f2a2321
Compare
Resolves #6690
Impact: major
Type: feature
Issue
Old discount codes will not work in new promotion framework
Solution
Create migration for carts / discount codes to new promotions / coupons