diff --git a/migrations/env.py b/migrations/env.py index aaabec8..fc171e3 100644 --- a/migrations/env.py +++ b/migrations/env.py @@ -15,8 +15,6 @@ logging.basicConfig() logging.getLogger("sqlalchemy.engine").setLevel(logging.INFO) logging.getLogger("alembic").setLevel(logging.DEBUG) -# Add this line for transaction debugging - # Add project root to Python path sys.path.append(str(Path(__file__).parents[1])) @@ -72,7 +70,6 @@ def run_migrations_offline() -> None: literal_binds=True, dialect_opts={"paramstyle": "named"}, version_table_schema=target_metadata.schema, # This sets schema for version table - include_schema=True, ) with context.begin_transaction(): @@ -118,7 +115,6 @@ def run_migrations_online() -> None: connection=connection, target_metadata=target_metadata, version_table_schema=target_metadata.schema, - include_schema=True, ) with context.begin_transaction(): diff --git a/src/db.py b/src/db.py index 17414f7..19d55a2 100644 --- a/src/db.py +++ b/src/db.py @@ -52,7 +52,7 @@ def scaffold_db(): engine = create_engine( os.environ["CONNECTION_URI"], pool_pre_ping=True, - echo=False, + echo=True, ) # Create inspector to check if database exists