|
7 | 7 | from sqlalchemy.ext.asyncio import async_engine_from_config |
8 | 8 | from sqlmodel import SQLModel |
9 | 9 |
|
10 | | -from app.core import settings |
| 10 | +from app.core.settings import settings |
11 | 11 |
|
12 | 12 | # this is the Alembic Config object, which provides |
13 | 13 | # access to the values within the .ini file in use. |
|
24 | 24 | # target_metadata = mymodel.Base.metadata |
25 | 25 | target_metadata = SQLModel.metadata |
26 | 26 |
|
27 | | -config.set_main_option('sqlalchemy.url', settings.pg_dsn.unicode_string()) |
| 27 | +config.set_main_option("sqlalchemy.url", settings.pg_dsn.unicode_string()) |
28 | 28 |
|
29 | 29 |
|
30 | 30 | # other values from the config, defined by the needs of env.py, |
|
0 commit comments