diff --git a/robyn/scaffold/structured/sqlalchemy/migrations/env.py b/robyn/scaffold/structured/sqlalchemy/migrations/env.py index 1e0277f56..3268fe83c 100644 --- a/robyn/scaffold/structured/sqlalchemy/migrations/env.py +++ b/robyn/scaffold/structured/sqlalchemy/migrations/env.py @@ -1,7 +1,5 @@ from logging.config import fileConfig -from sqlalchemy import engine_from_config -from sqlalchemy import pool from alembic import context @@ -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: @@ -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()