fix(documents): correct 0051 migration header — backfill ships separately
Header comment said the migration backfills the structure; it doesn't. Backfill is in scripts/backfill-document-folders.ts (Task 11) so the schema change can deploy first and the data work runs idempotently after. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
-- Wave 11.B+: documents hub split + auto-filed client folders.
|
||||
-- Adds system-managed folder lifecycle columns to document_folders
|
||||
-- (Clients/Companies/Yachts roots + per-entity subfolders), adds the
|
||||
-- folder_id pointer to files, and backfills the structure for every
|
||||
-- existing port + file. Idempotent — safe to re-run.
|
||||
-- (Clients/Companies/Yachts roots + per-entity subfolders) and the
|
||||
-- folder_id pointer to files. Backfill (ensureSystemRoots + per-
|
||||
-- entity subfolders + files.folder_id from entity FKs) runs as a
|
||||
-- separate deploy step — see scripts/backfill-document-folders.ts.
|
||||
-- Idempotent — safe to re-run.
|
||||
|
||||
-- ─── document_folders: lifecycle columns ──────────────────────────────────
|
||||
ALTER TABLE "document_folders"
|
||||
|
||||
Reference in New Issue
Block a user