Why the migrate apply do not run in the same transaction? #1992
Unanswered
XiaoXiaoSN
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to understand the
sqlx::migrate::Migrator
andsqlx::migrate::Migrate
mechanism, but I have a question:https://github.com/launchbadge/sqlx/blob/v0.6.0/sqlx-core/src/postgres/migrate.rs#L217-L247
Why we don't put
user migration.sql
and_sqlx_migrations record
in the same transactions?I mean shouldn't it be like this?
Am I missing something ? 👀
Beta Was this translation helpful? Give feedback.
All reactions