refactor(db): publish workspace_id column in zero_publication

Phase 1 (rename DB) commit 2: flip the search_space_id entries in the
canonical Zero publication column lists (documents, automations,
new_chat_threads, podcasts) to the renamed physical column workspace_id,
so ALTER PUBLICATION ... SET TABLE matches the post-rename schema.

No test references the publication shape; functional verification via
`python -m app.zero_publication --verify` runs after migration 170
builds/renames the publication against a live DB.
This commit is contained in:
CREDO23 2026-06-26 16:56:39 +02:00
parent c6d4e5df7c
commit 464e28ea25

View file

@ -28,7 +28,7 @@ DOCUMENT_COLS = [
"id", "id",
"title", "title",
"document_type", "document_type",
"search_space_id", "workspace_id",
"folder_id", "folder_id",
"created_by_id", "created_by_id",
"status", "status",
@ -54,12 +54,12 @@ AUTOMATION_RUN_COLS = [
AUTOMATION_COLS = [ AUTOMATION_COLS = [
"id", "id",
"search_space_id", "workspace_id",
] ]
NEW_CHAT_THREAD_COLS = [ NEW_CHAT_THREAD_COLS = [
"id", "id",
"search_space_id", "workspace_id",
] ]
# Enough to drive the lifecycle UI by push: status, the reviewable brief, and # Enough to drive the lifecycle UI by push: status, the reviewable brief, and
@ -73,7 +73,7 @@ PODCAST_COLS = [
"spec_version", "spec_version",
"duration_seconds", "duration_seconds",
"error", "error",
"search_space_id", "workspace_id",
"thread_id", "thread_id",
"created_at", "created_at",
] ]