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

feature: move migrations commands to the new db namespace #8810

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

thetutlage
Copy link
Contributor

Fixes: FRMW-2675, FRMW-2665

This PR adds the following new commands to the db namespace.

  • db:migrate: This command will run the migrations and the also sync the links, unless --skip-links flag is specified.
  • db:rollback: Rolls-back last batch of migrations for one or more selected modules.
  • db:generate: Generates migrations for one or more selected modules.

The db:migrate command accepts and forwards the --execute-all-links and --execute-safe-links to the sync-links command.

@thetutlage thetutlage requested a review from a team as a code owner August 27, 2024 09:10
Copy link

vercel bot commented Aug 27, 2024

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

Name Status Preview Comments Updated (UTC)
api-reference 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 9:11am
api-reference-v2 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 9:11am
docs-ui 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 9:11am
docs-v2 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 9:11am
medusa-dashboard 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 9:11am
medusa-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 9:11am
resources-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 9:11am

Copy link

changeset-bot bot commented Aug 27, 2024

⚠️ No Changeset found

Latest commit: 89861d8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

LGTM

@thetutlage thetutlage merged commit 2a5ee97 into develop Aug 27, 2024
15 checks passed
@thetutlage thetutlage deleted the feat/migrations-commands branch August 27, 2024 11:20
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.

3 participants