mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-06 22:12:12 +02:00
refactor(db): shim notifications.search_space_id to physical workspace_id
Phase 1 (rename DB) commit 1d: attribute->physical column shim on the notifications satellite model, plus the inbox-list index column-ref and its name aligned to workspace (ix_notifications_user_workspace_created).
This commit is contained in:
parent
9271678c73
commit
bb953e6857
1 changed files with 3 additions and 2 deletions
|
|
@ -34,9 +34,9 @@ class Notification(BaseModel, TimestampMixin):
|
|||
),
|
||||
# Serves the paginated inbox list query.
|
||||
Index(
|
||||
"ix_notifications_user_space_created",
|
||||
"ix_notifications_user_workspace_created",
|
||||
"user_id",
|
||||
"search_space_id",
|
||||
"workspace_id",
|
||||
"created_at",
|
||||
),
|
||||
)
|
||||
|
|
@ -48,6 +48,7 @@ class Notification(BaseModel, TimestampMixin):
|
|||
index=True,
|
||||
)
|
||||
search_space_id = Column(
|
||||
"workspace_id",
|
||||
Integer,
|
||||
ForeignKey("searchspaces.id", ondelete="CASCADE"),
|
||||
nullable=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue