diff --git a/schema/functions/attach_community_write_fence.sql b/schema/functions/attach_community_write_fence.sql index 2b004ff684..94d510f75c 100644 --- a/schema/functions/attach_community_write_fence.sql +++ b/schema/functions/attach_community_write_fence.sql @@ -1,6 +1,6 @@ --- Attach the universal fence to one community-scoped relation. Future --- migrations must invoke this helper explicitly after CREATE/ALTER introduces --- community_id; the migration lint enforces that contract. +-- Attach the legacy universal fence to one community-scoped relation. Only +-- tables fenced before fence retirement use it; new tenant tables rely on +-- application admission and must not call it (docs/database.md Rule 1). CREATE FUNCTION attach_community_write_fence(target REGCLASS) RETURNS VOID LANGUAGE plpgsql AS $$ DECLARE diff --git a/schema/schema.sql b/schema/schema.sql index aa4ae3a426..ce60e11a20 100644 --- a/schema/schema.sql +++ b/schema/schema.sql @@ -213,5 +213,3 @@ CREATE EXTENSION IF NOT EXISTS pgcrypto; \i seeds/operator_listener_outbox.sql \i seeds/relay_operator_audit.sql \i seeds/storage_accounting_snapshots.sql - --- Fence any community-scoped table that lacks an explicit attach.