You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a note in the readme that should probably be larger
Note: SQL statements are batch executed as is. If you want your migration to happen atomically in a transaction you must manually wrap your statements in a transaction (begin transaction; ... commit;).
That requirement stems from two things:
going with the lowest common denominator, mysql doesn't support migrations in transaction
an original "feature" of this tool where it would fallback to using the command line utilities (psql, sqlite, mysqlsh) if the CLI was compiled without the database driver libraries.
Number 2 is no longer a "feature", now it's just tech debt that I need to get rid of - after that, db's that support ddl changes in transactions can run all migration sql in a transaction automatically.
SQLIte project. Made a creation migration that included multiple statements. One of which had a flaw
I fixed the migration but it looks like the original statements were not rolled back (not running in a transaction maybe?)
But I cant go down because the original migration is not marked as ... up
The text was updated successfully, but these errors were encountered: