1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-07 01:25:11 +01:00

Fix migration to actually rename sqlite columns

This commit is contained in:
2025-09-12 22:49:34 +02:00
parent 0cdd2fbb93
commit 8b4ee37fec
4 changed files with 45 additions and 32 deletions

View File

@@ -48,6 +48,7 @@ def run_migrations_offline() -> None:
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={'paramstyle': 'named'},
render_as_batch=True,
)
with context.begin_transaction():
@@ -55,7 +56,11 @@ def run_migrations_offline() -> None:
def do_run_migrations(connection: Connection) -> None:
context.configure(connection=connection, target_metadata=target_metadata)
context.configure(
connection=connection,
target_metadata=target_metadata,
render_as_batch=True,
)
with context.begin_transaction():
context.run_migrations()