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

True conditional migrations #11

Merged
merged 14 commits into from
Jul 4, 2021
Merged

True conditional migrations #11

merged 14 commits into from
Jul 4, 2021

Conversation

boswelja
Copy link
Owner

@boswelja boswelja commented Jul 4, 2021

breaking: This change modifies the ConditionalMigration structure, as well as makes changes to the base Migration interface.
I've set up a more proper structure for running conditional migrations, which also doesn't require specifying a toVersion anymore, which means conditional migrations are "truly conditional".
Internally, migrations that don't specify a toVersion are referred to as "Constant migrations", since they won't modify the Migrator version. Migrations that specify toVersion are classified as "Versioned migrations", whether they implement VersionedMigration or not.

Resolves #10

@boswelja boswelja added the enhancement New feature or request label Jul 4, 2021
@boswelja boswelja merged commit c4409c0 into main Jul 4, 2021
@boswelja boswelja deleted the true-conditional-migrations branch July 4, 2021 10:23
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

Successfully merging this pull request may close these issues.

Conditional migrations should be run regardless of version
1 participant