From ad27420688e4ecb9fa2fd76086fa6a6d9f9c291b Mon Sep 17 00:00:00 2001 From: Sebastiaan Date: Fri, 23 May 2025 18:13:01 +0200 Subject: [PATCH] Use basemodel --- backend/app/alembic/env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/alembic/env.py b/backend/app/alembic/env.py index 7f29c04..b400d56 100755 --- a/backend/app/alembic/env.py +++ b/backend/app/alembic/env.py @@ -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: