We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e9e34c commit e67fc93Copy full SHA for e67fc93
migrations/env.py
@@ -7,10 +7,10 @@
7
from sqlalchemy.ext.asyncio.engine import AsyncConnection
8
9
# This is a required step by Alembic to properly generate migrations
10
-from api import database
+from api.models.orm import base
11
from api.settings import ConnectionURLs
12
13
-target_metadata = database.Base.metadata
+target_metadata = base.Base.metadata
14
15
# this is the Alembic Config object, which provides
16
# access to the values within the .ini file in use.
pyproject.toml
@@ -55,6 +55,7 @@ webserver = "uvicorn api.main:app"
55
[tool.isort]
56
profile = "black"
57
line_length = 120
58
+known_third_party = "alembic"
59
60
[tool.black]
61
line-length = 120
0 commit comments