From 874ce9b2203ca6bcdd340eb86aba055bfc28ca36 Mon Sep 17 00:00:00 2001 From: Automated Action Date: Mon, 26 May 2025 18:26:16 +0000 Subject: [PATCH] Fix Base import in app/db/base.py for Alembic migrations The error was occurring because migrations/env.py was trying to import Base from app.db.base, but it wasn't being exported there. This change adds the proper import and re-export of Base in app.db.base.py, fixing the database migration error. --- app/db/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/db/base.py b/app/db/base.py index 19a618a..8cff77b 100644 --- a/app/db/base.py +++ b/app/db/base.py @@ -1 +1,5 @@ +from app.db.base_class import Base +from app.models.user import User +from app.models.client import Client +from app.models.invoice import Invoice, InvoiceItem # Import all models here for Alembic to detect them \ No newline at end of file