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

Easy way to opt out of dev loop for some migrations #42

Open
JAForbes opened this issue May 9, 2024 · 0 comments
Open

Easy way to opt out of dev loop for some migrations #42

JAForbes opened this issue May 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@JAForbes
Copy link
Owner

JAForbes commented May 9, 2024

Sometimes you want to mark as migration as stable locally and not re-run it every time.

Effectively get --prod behaviour but in --dev

This is essentially import for bulk updates / inserts that are chunked. You don't want to constantly re-run them when they take a while to execute.

Just a simple export to tell pgmg to mark it as done even if its in dev mode. And if you unmark the flag it should pick it up again on the next run. And if you mistakenly commit that flag enabled it should have no impact on --prod.

@JAForbes JAForbes added the enhancement New feature or request label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant