mirror of
https://github.com/block/buzz.git
synced 2026-11-24 02:02:07 +00:00
buzz-db: fix main (renumber the function drop to 0094, update_channel test call) (#9616)
## Summary Main has two migrations numbered `0093`: - `0093_push_gateway_installation_platform.sql` from #9560 - `0093_drop_plain_sql_functions.sql` from #9598 The file names differ, so GitHub showed no conflict between the PRs. sqlx applies the first version-93 migration and then rejects the second as a changed migration 93. Every migrate run on main fails, including relay startup with auto-migration on. This PR moves #9598's migration to `0094`: - `git mv migrations/0093_drop_plain_sql_functions.sql migrations/0094_drop_plain_sql_functions.sql`. The SQL is unchanged. - `embedded_migrator_contains_consolidated_initial_schema` now expects 94 migrations, with the function drop at version 94. - The Postgres test is renamed to `migration_0094_drops_plain_sql_functions`. It finds the migration by description, so its logic is unchanged. - `docs/trigger-retirement-deployment.md` now names `0094`. #9560's `0093` keeps its number. It reached main first and may already be applied on deployments that auto-migrate. ## Second break on main: `update_channel` call sites Main's buzz-db lib tests also stopped compiling. #9581 added a `sender` argument to `update_channel`, and #8320's cross-community test (`deletion.rs`) landed in parallel with the old three-argument call. This PR passes the channel creator as the sender. The test only renames an open channel, so the private-to-open rule does not apply. ## Deployments No deployment has applied #9598's `0093`: no image built from main after #9598 has rolled out yet. A database that applied #9560's `0093` applies `0094` next. Do not promote any image built from `4e8f8365` (the #9598 merge) or later until this PR merges. ## What got simpler Nothing. This is a renumber and a test call fix only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Luke Tornquist <tornquist@squareup.com> Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -71,9 +71,9 @@ not know (`VersionMissing`) and does not start. With it off, the stop build
|
||||
serves, but its startup check finds the floor trigger gone and keeps the
|
||||
replica fence closed, so cursor reads go to the writer.
|
||||
|
||||
## Plain SQL functions (`0093`)
|
||||
## Plain SQL functions (`0094`)
|
||||
|
||||
`0093_drop_plain_sql_functions.sql` drops two functions whose work the relay
|
||||
`0094_drop_plain_sql_functions.sql` drops two functions whose work the relay
|
||||
now does in application code:
|
||||
|
||||
| Function | Application replacement |
|
||||
@@ -83,12 +83,12 @@ now does in application code:
|
||||
|
||||
**A relay build at or after commit `279a31da` (the merge of
|
||||
[#9397](https://github.com/block/buzz/pull/9397), which follows #9396) and
|
||||
before `0093` is a required stop.** No tagged relay release contains it:
|
||||
before `0094` is a required stop.** No tagged relay release contains it:
|
||||
`relay-v0.3.0` does not, so a deployment on a tagged release must move to a
|
||||
stop build first. Follow the same procedure as above. An older relay that
|
||||
still serves after `0093` fails every write and deletion that takes the community deletion lock, with
|
||||
still serves after `0094` fails every write and deletion that takes the community deletion lock, with
|
||||
`42883 community_deletion_lock_key(uuid) does not exist`, and its profile name
|
||||
search fails with `42883 profile_name_fields(text) does not exist`.
|
||||
|
||||
`0093` takes no table locks. It needs no cleanup, and a rollback to a stop
|
||||
`0094` takes no table locks. It needs no cleanup, and a rollback to a stop
|
||||
build needs auto-migration off, as above.
|
||||
|
||||
Reference in New Issue
Block a user