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

Fix overwriting migration file named 0 #549

Closed
wants to merge 2 commits into from
Closed

Fix overwriting migration file named 0 #549

wants to merge 2 commits into from

Conversation

hfhbd
Copy link
Collaborator

@hfhbd hfhbd commented Aug 8, 2023

If a migration file has the order 0 and we use a baseContributor, the base migration 0 is overwritten. Is this behavior expected?
Use-case from sqldelight: a given findDbFile() and! a migration file named 0.sqm. The migration file 0 would be overwritten by the db file. Now the schema from the db file is the base and the migration file 0.sqm would still be used.

@hfhbd
Copy link
Collaborator Author

hfhbd commented Sep 19, 2023

Fixed and tested with #548

@hfhbd hfhbd closed this Sep 19, 2023
@hfhbd hfhbd deleted the hfhbd-patch-1 branch September 19, 2023 20:53
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