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

feat: add check command to check pending migrations #1219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

taisph
Copy link

@taisph taisph commented Jan 21, 2025

The check command checks for pending migrations and returns an error if
there are any.

This allows a user to use it in a script where the user doesn't want to
run the migrations but still ensure that there are none pending before
continuing.

For example, when using a Kubernetes Job to perform migrations while a
Deployment runs the service itself, a user may want to prevent the
Deployment from starting fully before the migrations have completed.

@taisph taisph force-pushed the feat-check-pending branch 2 times, most recently from c6d76f2 to bdbfb55 Compare January 21, 2025 16:55
The check command checks for pending migrations and returns an error if
there are any.

This allows a user to use it in a script where the user doesn't want to
run the migrations but still ensure that there are none pending before
continuing.

For example, when using a Kubernetes Job to perform migrations while a
Deployment runs the service itself, a user may want to prevent the
Deployment from starting fully before the migrations have completed.
@taisph taisph force-pushed the feat-check-pending branch from bdbfb55 to 547898f Compare January 22, 2025 07:46
@taisph taisph marked this pull request as ready for review January 22, 2025 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant