Merge "db: Don't rely on branched connections"
This commit is contained in:
commit
3ca2d4fdc8
@ -68,7 +68,12 @@ def run_migrations_online():
|
||||
target_metadata=target_metadata)
|
||||
with context.begin_transaction():
|
||||
context.run_migrations()
|
||||
|
||||
else:
|
||||
context.configure(
|
||||
connection=connectable,
|
||||
target_metadata=target_metadata)
|
||||
with context.begin_transaction():
|
||||
context.run_migrations()
|
||||
|
||||
if context.is_offline_mode():
|
||||
run_migrations_offline()
|
||||
|
Loading…
Reference in New Issue
Block a user