feat: auth & admin
This commit is contained in:
+3
-4
@@ -8,16 +8,15 @@ registers every model so autogenerate sees the full schema.
|
||||
import asyncio
|
||||
from logging.config import fileConfig
|
||||
|
||||
# Import side-effect: registers all ORM models on Base.metadata so autogenerate
|
||||
# sees the full schema.
|
||||
import app.infrastructure.db.models # noqa: F401
|
||||
from alembic import context
|
||||
from app.core.config import get_settings
|
||||
from app.infrastructure.db import Base
|
||||
from sqlalchemy.engine import Connection
|
||||
from sqlalchemy.ext.asyncio import async_engine_from_config
|
||||
|
||||
# Import side-effect: registers all ORM models on Base.metadata.
|
||||
# Uncomment once models exist (plan §11 step 2):
|
||||
# import app.infrastructure.db.models
|
||||
|
||||
config = context.config
|
||||
if config.config_file_name is not None:
|
||||
fileConfig(config.config_file_name)
|
||||
|
||||
Reference in New Issue
Block a user