Skip to content

Commit 29618eb

Browse files
committed
fix(fork): renumber fork migrations to 0029/0030 — upstream took 0028
Upstream block#3833 claims migration 0028 (long_reaction_payloads). Slide the fork-carried migrations up: agent_invites 0028->0029, agent_member_role 0029->0030. File contents unchanged, preserving sqlx checksums; prod applies the mapping via _sqlx_migrations version-row surgery in the deploy window (established pattern from the 0026/0027 renumbers). Signed-off-by: kbst9 <[email protected]>
1 parent 4aa22c8 commit 29618eb

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎crates/buzz-db/src/migration.rs‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -935,9 +935,10 @@ mod tests {
935935
// Claiming binds the claimant to agent_owner inside the claim txn;
936936
// NULL preserves plain member invites bit-for-bit. Single-use pin is
937937
// a schema-level CHECK so no future caller can mint a multi-use one.
938-
// Renumbered 0026 -> 0027 -> 0028: upstream took 0026 for
939-
// replica_heartbeat, then 0027 for the channel-id lookup index.
940-
assert_eq!(migrations[27].version, 28);
938+
// Renumbered 0026 -> 0027 -> 0028 -> 0029: upstream took 0026 for
939+
// replica_heartbeat, 0027 for the channel-id lookup index, then 0028
940+
// for long reaction payloads.
941+
assert_eq!(migrations[27].version, 29);
941942
let agent_invites = migrations[27].sql.as_str();
942943
assert!(agent_invites.contains("ADD COLUMN agent_owner TEXT"));
943944
assert!(
@@ -947,9 +948,9 @@ mod tests {
947948
assert!(agent_invites.contains("CHECK (agent_owner IS NULL OR max_uses = 1)"));
948949

949950
// Agent member-role classification: invite-claimed agents surface as
950-
// role 'bot' in the NIP-43 roster. Renumbered 0028 -> 0029 alongside
951-
// agent_invites when upstream took 0027.
952-
assert_eq!(migrations[28].version, 29);
951+
// role 'bot' in the NIP-43 roster. Renumbered 0028 -> 0029 -> 0030
952+
// alongside agent_invites as upstream's sequence advanced.
953+
assert_eq!(migrations[28].version, 30);
953954
let member_role = migrations[28].sql.as_str();
954955
assert!(member_role.contains("CHECK (role IN ('owner', 'admin', 'member', 'bot'))"));
955956
assert!(member_role.contains("SET role = 'bot'"));

0 commit comments

Comments
 (0)