refactor: delete legacy models/database/cart.py
Update import in alembic/env.py to use app.modules.cart.models, then delete the legacy re-export file. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -157,7 +157,7 @@ except ImportError as e:
|
||||
# CART MODELS
|
||||
# ----------------------------------------------------------------------------
|
||||
try:
|
||||
from models.database.cart import CartItem
|
||||
from app.modules.cart.models import CartItem
|
||||
|
||||
print(" ✓ Cart models imported (1 model)")
|
||||
print(" - CartItem")
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
# models/database/cart.py
|
||||
"""
|
||||
LEGACY LOCATION - This file re-exports from the canonical module location.
|
||||
|
||||
Canonical location: app/modules/cart/models/
|
||||
|
||||
This file exists for backward compatibility. New code should import from:
|
||||
from app.modules.cart.models import CartItem
|
||||
"""
|
||||
|
||||
from app.modules.cart.models.cart import CartItem
|
||||
|
||||
__all__ = ["CartItem"]
|
||||
Reference in New Issue
Block a user