From 9271678c73c9e72883b6c70af84f11ce887a9272 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 26 Jun 2026 12:12:13 +0200 Subject: [PATCH] refactor(db): shim automations.search_space_id to physical workspace_id Phase 1 (rename DB) commit 1c: attribute->physical column shim on the automations satellite model. ORM attribute and relationship unchanged. --- .../app/automations/persistence/models/automation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/surfsense_backend/app/automations/persistence/models/automation.py b/surfsense_backend/app/automations/persistence/models/automation.py index cb0b2ed31..f82e9c750 100644 --- a/surfsense_backend/app/automations/persistence/models/automation.py +++ b/surfsense_backend/app/automations/persistence/models/automation.py @@ -25,6 +25,7 @@ class Automation(BaseModel, TimestampMixin): __tablename__ = "automations" search_space_id = Column( + "workspace_id", Integer, ForeignKey("searchspaces.id", ondelete="CASCADE"), nullable=False,