chore: trim verbose audit log backfill migration comment

This commit is contained in:
ephraimduncan
2026-06-16 11:46:54 +00:00
parent 77889270b8
commit 179902a96f
@@ -1,11 +1,7 @@
-- AlterTable
ALTER TABLE "DocumentMeta" ADD COLUMN "includeAuditLog" BOOLEAN NOT NULL DEFAULT false;
-- Backfill existing rows from the effective team/organisation setting. Before this
-- column existed the sealing flow read `includeAuditLog` from the team settings
-- (falling back to the organisation default), so documents created prior to this
-- migration must keep that resolved value to avoid silently dropping audit-log
-- embedding after deploy.
-- Backfill includeAuditLog from the effective team/organisation setting
UPDATE "DocumentMeta" AS dm
SET "includeAuditLog" = COALESCE(tgs."includeAuditLog", ogs."includeAuditLog")
FROM "Envelope" e