fix(db): bootstrap only declared legacy fences

Signed-off-by: Nikolaj Goodger <ngoodger@squareup.com>
This commit is contained in:
Nikolaj Goodger
2026-10-22 20:42:58 +11:00
parent 6861e18a86
commit e84790488e
6 changed files with 54 additions and 46 deletions

View File

@@ -7,9 +7,9 @@
--
-- Everything SchemaBot cannot apply lives in this directory's other
-- subdirectories: `types/`, `functions/`, `partitions/`, `triggers/` (including
-- write-fence attachment), `seeds/`, and the `community_write_fence.sql`
-- bootstrap. This file composes all of them into one fresh database, in load
-- order: types → functions → tables → partitions → triggers → seeds → fence.
-- explicit legacy write-fence attachment), and `seeds/`. This file composes
-- them into one fresh database, in load order:
-- types → functions → tables → partitions → triggers → seeds.
--
-- `./bin/pgschema apply --file schema/schema.sql` resolves the `\i` includes
-- relative to this file (it refuses `..`). `pgschema` skips INSERTs and some
@@ -215,4 +215,3 @@ CREATE EXTENSION IF NOT EXISTS pgcrypto;
\i seeds/storage_accounting_snapshots.sql
-- Fence any community-scoped table that lacks an explicit attach.
\i community_write_fence.sql