From a1d20284c008c411c69e52aa6b83f0b1a586fe7d Mon Sep 17 00:00:00 2001 From: Jonas Linter Date: Tue, 18 Nov 2025 19:36:08 +0000 Subject: [PATCH] the db might not have permissions for this. Schema needs to exist ahead of time which is fine --- alembic/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/env.py b/alembic/env.py index 29d8d64..24ab0dc 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -82,7 +82,7 @@ def do_run_migrations(connection: Connection) -> None: with context.begin_transaction(): # Create schema if it doesn't exist if SCHEMA: - connection.execute(text(f"CREATE SCHEMA IF NOT EXISTS {SCHEMA}")) + #connection.execute(text(f"CREATE SCHEMA IF NOT EXISTS {SCHEMA}")) # Set search path to our schema print(f"setting search path to schema {SCHEMA}, ") connection.execute(text(f"SET search_path TO {SCHEMA}"))