diff --git a/backend/alembic/env.py b/backend/alembic/env.py index 1d2be1d0..f9f8180f 100644 --- a/backend/alembic/env.py +++ b/backend/alembic/env.py @@ -55,9 +55,7 @@ def run_migrations_online() -> None: connection.execute("LOCK TABLE alembic_version IN ACCESS EXCLUSIVE MODE") context.run_migrations() - if context.is_offline_mode(): run_migrations_offline() else: run_migrations_online() -