Skip to content
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

fix(pricing): add missing migrations for pricing module #5646

Merged
merged 6 commits into from
Nov 16, 2023

Conversation

riqwan
Copy link
Contributor

@riqwan riqwan commented Nov 16, 2023

No description provided.

Copy link

changeset-bot bot commented Nov 16, 2023

🦋 Changeset detected

Latest commit: 0a921d7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@medusajs/pricing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Nov 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2023 2:14pm
docs-ui ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2023 2:14pm
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2023 2:14pm

@riqwan riqwan marked this pull request as ready for review November 16, 2023 10:07
@riqwan riqwan requested a review from a team as a code owner November 16, 2023 10:07
Copy link
Contributor

@pKorsholm pKorsholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@fPolic fPolic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@riqwan riqwan requested a review from adrien2p November 16, 2023 12:51
Comment on lines 52 to 56
this.addSql('drop index if exists "IDX_money_amount_deleted_at";')

this.addSql(
'create index "IDX_money_amount_deleted_at" on "money_amount" ("deleted_at");'
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: any reason to drop and re create the index?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a safety mechanism, to always start from a clean slate. :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't a REINDEX be enough?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something like IF NOT EXISTS maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Member

@adrien2p adrien2p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, ive got one question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants