From 04b3521696ba935ea3c23013b124b7ce5a97736e Mon Sep 17 00:00:00 2001 From: Cea Stapleton Cordasco <261786559+cea@users.noreply.github.com> Date: Tue, 11 Aug 2026 08:56:33 -0500 Subject: [PATCH] docs(schema): clarify restored constraints Signed-off-by: Cea Stapleton Cordasco <261786559+cea@users.noreply.github.com> --- scripts/attach-schema-partitions.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/attach-schema-partitions.sql b/scripts/attach-schema-partitions.sql index e81a34309..39ab807d7 100644 --- a/scripts/attach-schema-partitions.sql +++ b/scripts/attach-schema-partitions.sql @@ -317,8 +317,9 @@ SELECT pg_temp.ensure_exact_check_constraint( $expression$owner_pubkey IS NULL AND delegated_relationship_id IS NULL AND delegated_relationship_revision IS NULL AND delegation_conditions_fingerprint IS NULL OR owner_pubkey IS NOT NULL AND delegated_relationship_id IS NOT NULL AND delegated_relationship_revision IS NOT NULL AND delegation_conditions_fingerprint IS NOT NULL$expression$ ); --- These two disjunctive checks predate NIP-FI but are omitted by the same --- pgschema dump path, so M0 closes them through the shared exact verifier. +-- These two disjunctive checks predate the protected authorization schema but +-- are omitted by the pgschema dump path, so this attachment step restores +-- their exact definitions after declarative schema application. SELECT pg_temp.ensure_exact_check_constraint( 'moderation_reports', 'moderation_reports_check',