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

Only run compatible down migrations #564

Merged
merged 2 commits into from
Jun 20, 2020

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Jun 17, 2020

Previously Migrator.Down() would run incompatible migrations. This patch addresses that issue by checking if the migration is compatible with the current translator/database before applying it.

@aeneasr aeneasr requested a review from a team as a code owner June 17, 2020 15:22
…ions

Previously `Migrator.Down()` would run incompatible migrations. This patch addresses that issue by checking if the migration is compatible with the current translator/database before applying it. Filtering is required as counting is used to filter out already run down migrations and migrations that have not yet been applied.
@aeneasr
Copy link
Member Author

aeneasr commented Jun 17, 2020

Same SQLite failure as with my other PR - is it possible that this is CI-related?

@stanislas-m
Copy link
Member

Yeah, sometimes the CI tests for SQLite on Windows got stuck. I've trigger a new build.

@stanislas-m stanislas-m merged commit 1d26ccb into gobuffalo:master Jun 20, 2020
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.

2 participants