Skip to content

Commit

Permalink
chore: Clean up debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
VVoruganti committed Dec 29, 2024
1 parent 356e4d5 commit 5ab1483
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down Expand Up @@ -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():
Expand Down Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion src/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ab1483

Please sign in to comment.