From e000cdfd46a25b2c835b2ea30037a2a148e43401 Mon Sep 17 00:00:00 2001 From: John Tennant Date: Tue, 1 Sep 2026 16:15:21 -0400 Subject: [PATCH] Generalize write-fence parity across migrations Signed-off-by: John Tennant --- crates/buzz-db/src/runtime/migration.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/crates/buzz-db/src/runtime/migration.rs b/crates/buzz-db/src/runtime/migration.rs index 414c2897f8..b9e83e4296 100644 --- a/crates/buzz-db/src/runtime/migration.rs +++ b/crates/buzz-db/src/runtime/migration.rs @@ -1828,15 +1828,10 @@ mod postgres_tests { expected_fences.remove("product_feedback"); expected_fences.remove("rate_limit_violations"); expected_fences.extend( - surface( - MIGRATOR - .iter() - .find(|item| item.version == 43) - .expect("migration 0043") - .sql - .as_ref(), - ) - .fence_attachments, + MIGRATOR + .iter() + .filter(|migration| migration.version > 29) + .flat_map(|migration| surface(migration.sql.as_ref()).fence_attachments), ); assert_eq!( expected_fences, schema.fence_attachments,