feat(persistence): admit durable funded maturation upgrades
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 2m24s
Foundation / checks (network) (push) Successful in 20m40s
Foundation / checks (client) (push) Successful in 21m57s
Foundation / checks (tsan) (push) Successful in 26m32s
Foundation / checks (postgres) (push) Successful in 1h3m17s
Foundation / checks (checks) (push) Successful in 1h14m29s
Foundation / postgres-tools (push) Successful in 34s
Foundation / server-image (push) Successful in 4m6s
Foundation / image (push) Successful in 4m52s

This commit is contained in:
dingo
2026-10-19 06:23:51 -04:00
parent a5307c768b
commit 463b091056
25 changed files with 799 additions and 74 deletions
+12 -3
View File
@@ -128,6 +128,7 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
SELECT :'history_v49' || ',50:' || :'migration_sha_50' AS history_v50 \gset
SELECT :'history_v50' || ',51:' || :'migration_sha_51' AS history_v51 \gset
SELECT :'history_v51' || ',52:' || :'migration_sha_52' AS history_v52 \gset
SELECT :'history_v52' || ',53:' || :'migration_sha_53' AS history_v53 \gset
SELECT :'history' = :'history_v22' AS at_v22,
:'history' = :'history_v23' AS at_v23,
:'history' = :'history_v24' AS at_v24,
@@ -158,8 +159,10 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
:'history' = :'history_v49' AS at_v49,
:'history' = :'history_v50' AS at_v50,
:'history' = :'history_v51' AS at_v51,
:'history' = :'history_v52' AS at_v52 \gset
\if :at_v52
:'history' = :'history_v52' AS at_v52,
:'history' = :'history_v53' AS at_v53 \gset
\if :at_v53
\elif :at_v52
\elif :at_v51
\elif :at_v50
\elif :at_v49
@@ -557,7 +560,8 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
coalesce(max(version), 0) = 49 AS at_v49,
coalesce(max(version), 0) = 50 AS at_v50,
coalesce(max(version), 0) = 51 AS at_v51,
coalesce(max(version), 0) = 52 AS at_v52
coalesce(max(version), 0) = 52 AS at_v52,
coalesce(max(version), 0) = 53 AS at_v53
FROM evolution.schema_migrations \gset
\if :at_v24
\ir 0025_cellular_v2_bundle.sql
@@ -778,6 +782,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
\elif :at_v50
\elif :at_v51
\elif :at_v52
\elif :at_v53
\else
\echo 'Unknown or changed migration history after v43'
DO $$ BEGIN RAISE EXCEPTION 'unknown or changed migration history'; END $$;
@@ -818,6 +823,10 @@ SELECT coalesce(max(version), 0) = 51 AS needs_v52 FROM evolution.schema_migrati
\if :needs_v52
\ir 0052_census_pending_migrations.sql
\endif
SELECT coalesce(max(version), 0) = 52 AS needs_v53 FROM evolution.schema_migrations \gset
\if :needs_v53
\ir 0053_funded_cellular_maturation.sql
\endif
-- Effective-privilege audit on every run, including no-ops (ADR-0060). Attributes
-- alone are insufficient: predefined roles such as pg_write_all_data, PUBLIC
-- grants or SET-able memberships would bypass the fenced functions. Checks the