From c0ee807199d159bcf28549dabdd7ac6671c247d8 Mon Sep 17 00:00:00 2001 From: Automated Action Date: Sat, 24 May 2025 22:47:10 +0000 Subject: [PATCH] Fix Base import in db/base.py for Alembic migrations - Updated app/db/base.py to properly export Base class - Fixed error when running Alembic migrations due to missing Base import - Added proper imports for models --- app/db/base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/db/base.py b/app/db/base.py index 8b9a4cd..dcedff3 100644 --- a/app/db/base.py +++ b/app/db/base.py @@ -1 +1,6 @@ -# Import all models for Alembic to detect +# Import all models and base for Alembic to detect +from app.db.base_class import Base # noqa +from app.models.todo import Todo # noqa + +# Export Base for other modules to use +__all__ = ["Base"]