From 4012f7da053e29af81b78d8393a34dffbcf68667 Mon Sep 17 00:00:00 2001 From: Batuhan Erenler <40266535+batuhanerenler@users.noreply.github.com> Date: Thu, 5 Jan 2023 22:50:22 +0300 Subject: [PATCH] Update env.py --- backend/alembic/env.py | 2 -- 1 file changed, 2 deletions(-) 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() -