Use basemodel

This commit is contained in:
Sebastiaan
2025-05-23 18:13:01 +02:00
parent 139d4fcdb8
commit ad27420688

View File

@@ -18,10 +18,10 @@ fileConfig(config.config_file_name)
# target_metadata = mymodel.Base.metadata
# target_metadata = None
from app.models import SQLModel # noqa
from app.models.base import BaseSQLModel # noqa
from app.core.config import settings # noqa
target_metadata = SQLModel.metadata
target_metadata = BaseSQLModel.metadata
# other values from the config, defined by the needs of env.py,
# can be acquired: