From e2578e09bcf3e790682c1b697e0c1be797101629 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 26 Jun 2026 12:08:26 +0200 Subject: [PATCH] refactor(db): shim document_files.search_space_id to physical workspace_id Phase 1 (rename DB) commit 1b: same attribute->physical column shim as 1a, applied to the document_files satellite model. ORM attribute name unchanged; FK target string left for the searchspaces rename commit. --- surfsense_backend/app/file_storage/persistence/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/surfsense_backend/app/file_storage/persistence/models.py b/surfsense_backend/app/file_storage/persistence/models.py index 7433f35ed..a3aed0205 100644 --- a/surfsense_backend/app/file_storage/persistence/models.py +++ b/surfsense_backend/app/file_storage/persistence/models.py @@ -30,6 +30,7 @@ class DocumentFile(BaseModel, TimestampMixin): index=True, ) search_space_id = Column( + "workspace_id", Integer, ForeignKey("searchspaces.id", ondelete="CASCADE"), nullable=False,