Skip to content

Commit 82f3f32

Browse files
committed
chore(db): annotate the contract-phase drops for the migration-safety gate
1 parent a9ad2ea commit 82f3f32

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/db/migrations/0275_drop_legacy_folder_tables.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ ALTER TABLE "workspace_files" VALIDATE CONSTRAINT "workspace_files_folder_id_fol
226226
-- is an index on the LIVE `workflow` table, so anything globbing `workflow_folder*` would take
227227
-- out a production index. Their own FKs and indexes go with them; nothing references either
228228
-- table, so no CASCADE is needed and its absence is the safety check.
229+
--
230+
-- The cutover that stopped all reads and writes of these two tables shipped in EARLIER deploys
231+
-- (#6037 / #6045), not in this PR. Production has since drained — last legacy write 06:27:21Z,
232+
-- verified >10h earlier — and the full-row comparison described at the top of this file confirms
233+
-- nothing is stranded. Step 1 rescues any straggler regardless.
234+
-- migration-safe: reads/writes ceased in an earlier deploy; drained and full-row verified.
229235
DROP TABLE IF EXISTS "workflow_folder";
230236
--> statement-breakpoint
237+
-- migration-safe: same cutover, same drain, same full-row verification as the drop above.
231238
DROP TABLE IF EXISTS "workspace_file_folders";

0 commit comments

Comments
 (0)