From 179902a96f6f4df2e5462c863b05d21220b63c65 Mon Sep 17 00:00:00 2001 From: ephraimduncan Date: Tue, 16 Jun 2026 11:46:54 +0000 Subject: [PATCH] chore: trim verbose audit log backfill migration comment --- .../migration.sql | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/prisma/migrations/20260521000000_add_document_meta_include_audit_log/migration.sql b/packages/prisma/migrations/20260521000000_add_document_meta_include_audit_log/migration.sql index 4d9de4056..75d196239 100644 --- a/packages/prisma/migrations/20260521000000_add_document_meta_include_audit_log/migration.sql +++ b/packages/prisma/migrations/20260521000000_add_document_meta_include_audit_log/migration.sql @@ -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