mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-14 13:40:54 +00:00
style:fmt
This commit is contained in:
@@ -66,12 +66,14 @@ def run_migrations_online() -> None:
|
||||
)
|
||||
|
||||
with connectable.connect() as connection:
|
||||
if engine.dialect.name == 'sqlite':
|
||||
context.configure(connection=engine.connect(), target_metadata=target_metadata, render_as_batch=True)
|
||||
else:
|
||||
if engine.dialect.name == "sqlite":
|
||||
context.configure(
|
||||
connection=connection, target_metadata=target_metadata
|
||||
connection=engine.connect(),
|
||||
target_metadata=target_metadata,
|
||||
render_as_batch=True,
|
||||
)
|
||||
else:
|
||||
context.configure(connection=connection, target_metadata=target_metadata)
|
||||
|
||||
with context.begin_transaction():
|
||||
context.run_migrations()
|
||||
|
Reference in New Issue
Block a user