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

Migrate all #249

Closed
wants to merge 3 commits into from
Closed

Migrate all #249

wants to merge 3 commits into from

Conversation

winterquinn
Copy link

New up-all command to offer a solution to the versioning issue.

up-all checks all the migrations and applies any that have not been run yet.

This helps to solve the versioning issue since with the current up command if there is a more recent migration that has already been run, all pending migrations that were created before will stay in a pending state and not be run.

@@ -6,7 +6,7 @@ import (
"log"
"os"

"github.com/pressly/goose"
"github.com/quinnwinterfluid/goose"
Copy link
Collaborator

Choose a reason for hiding this comment

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

wrong import.

@mxv2
Copy link

mxv2 commented Aug 17, 2021

Hi!
@quinnwinterfluid Can we resolve conflicts and issues and promote with feature to upstream?

vitark pushed a commit to vitark/goose that referenced this pull request Aug 26, 2021
@mfridman
Copy link
Collaborator

I'd prefer not adding another function, and instead maintain the same behaviour but allow for an opt-in flag to apply all migrations. Maybe a quarter of existing issues are related to "apply all migrations, always" and this will be captured and fixed via #262

Closing this PR. There are some edge cases that need to be considered and I'd like to get this right to avoid messing with our internal processes while being able to offer this functionality to others using this package. Thanks for your patience.

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.

None yet

3 participants