Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 26, 2024
1 parent 832bd8f commit 09b9262
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions robyn/scaffold/structured/sqlalchemy/migrations/env.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from logging.config import fileConfig

from sqlalchemy import engine_from_config
from sqlalchemy import pool

from alembic import context

Expand All @@ -21,7 +19,8 @@
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
from adaptors import models
target_metadata = models.Base.metadata

target_metadata = models.Base.metadata

# other values from the config, defined by the needs of env.py,
# can be acquired:
Expand Down Expand Up @@ -61,9 +60,7 @@ def run_migrations_online() -> None:
"""
with get_pool() as session:
context.configure(
connection=session.connection(), target_metadata=target_metadata
)
context.configure(connection=session.connection(), target_metadata=target_metadata)
with context.begin_transaction():
context.run_migrations()

Expand Down

0 comments on commit 09b9262

Please sign in to comment.