diff --git a/server/migrations/123_channel_generalization.down.sql b/server/migrations/124_channel_generalization.down.sql similarity index 87% rename from server/migrations/123_channel_generalization.down.sql rename to server/migrations/124_channel_generalization.down.sql index bda9d3cfd..73e87a5f3 100644 --- a/server/migrations/123_channel_generalization.down.sql +++ b/server/migrations/124_channel_generalization.down.sql @@ -1,4 +1,4 @@ --- Reverse 123_channel_generalization.up.sql. The lark_* tables were left +-- Reverse 124_channel_generalization.up.sql. The lark_* tables were left -- in place by the up migration, so rolling back only needs to drop the -- channel_* tables that were added. DROP TABLE IF EXISTS channel_binding_token; diff --git a/server/migrations/123_channel_generalization.up.sql b/server/migrations/124_channel_generalization.up.sql similarity index 100% rename from server/migrations/123_channel_generalization.up.sql rename to server/migrations/124_channel_generalization.up.sql diff --git a/server/pkg/db/generated/channel.sql.go b/server/pkg/db/generated/channel.sql.go index 75264e39c..c3f793763 100644 --- a/server/pkg/db/generated/channel.sql.go +++ b/server/pkg/db/generated/channel.sql.go @@ -97,7 +97,7 @@ type ClaimChannelInboundDedupParams struct { // claim is acquired (fresh insert, or stale-reclaim of an in-flight claim // older than 60s); returns no rows when terminal (processed) or actively // in-flight. Every claim mints a fresh claim_token; Mark/Release are -// fenced on it. See the table comment in migration 123 / the lark +// fenced on it. See the table comment in migration 124 / the lark // predecessor for the full invariant set. func (q *Queries) ClaimChannelInboundDedup(ctx context.Context, arg ClaimChannelInboundDedupParams) (ChannelInboundMessageDedup, error) { row := q.db.QueryRow(ctx, claimChannelInboundDedup, arg.InstallationID, arg.MessageID) @@ -933,7 +933,7 @@ type UpsertChannelInstallationParams struct { } // Platform-agnostic inbound channel queries (MUL-3515). These operate on -// the channel_* tables created in migration 123. Each installation carries +// the channel_* tables created in migration 124. Each installation carries // a `channel_type` discriminator and a JSONB `config` blob for // platform-specific identifiers/credentials; the cross-platform columns // stay flat. The Go layer owns building/parsing config — these queries diff --git a/server/pkg/db/queries/channel.sql b/server/pkg/db/queries/channel.sql index bab236b76..3b34f58ae 100644 --- a/server/pkg/db/queries/channel.sql +++ b/server/pkg/db/queries/channel.sql @@ -1,5 +1,5 @@ -- Platform-agnostic inbound channel queries (MUL-3515). These operate on --- the channel_* tables created in migration 123. Each installation carries +-- the channel_* tables created in migration 124. Each installation carries -- a `channel_type` discriminator and a JSONB `config` blob for -- platform-specific identifiers/credentials; the cross-platform columns -- stay flat. The Go layer owns building/parsing config — these queries @@ -209,7 +209,7 @@ WHERE chat_session_id = $1; -- claim is acquired (fresh insert, or stale-reclaim of an in-flight claim -- older than 60s); returns no rows when terminal (processed) or actively -- in-flight. Every claim mints a fresh claim_token; Mark/Release are --- fenced on it. See the table comment in migration 123 / the lark +-- fenced on it. See the table comment in migration 124 / the lark -- predecessor for the full invariant set. INSERT INTO channel_inbound_message_dedup (installation_id, message_id, claim_token) VALUES ($1, $2, gen_random_uuid())