Skip to content

Commit

Permalink
migrations: import metadata for ConfigTable
Browse files Browse the repository at this point in the history
  • Loading branch information
stintel committed Dec 6, 2023
1 parent eb6df2c commit 5e69439
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

from sqlalchemy import engine_from_config
from sqlalchemy import pool
from sqlmodel import SQLModel

from alembic import context

from app.internal.db import ConfigTable

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
Expand All @@ -18,7 +21,7 @@
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
target_metadata = SQLModel.metadata

# other values from the config, defined by the needs of env.py,
# can be acquired:
Expand Down

0 comments on commit 5e69439

Please sign in to comment.