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

[/v4] - checkpoint 2 #492

Merged
merged 6 commits into from
Apr 1, 2023
Merged

[/v4] - checkpoint 2 #492

merged 6 commits into from
Apr 1, 2023

Conversation

mfridman
Copy link
Collaborator

@mfridman mfridman commented Apr 1, 2023

This PR added an improved Fix implementation with additional tests.

Also added back the lazy parsing of SQL files, but we do this before applying any migrations so that we can fail fast if there are any errors and avoid leaving the database in a partially migrated state.

This is done to avoid parsing the SQL migration if it is never needed (e.g. the user is running a Go migration). Also, the majority of the time migrations are incremental, so it is likely that the user will only want to run the last few migrations, and there is no need to parse ALL previous migrations.

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