From 3ef753ff69302bfd63c53b0d8808941cac705570 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Tue, 30 Jun 2026 13:49:50 -0400 Subject: [PATCH] fix: remove stale idx_webhooks_token index from migration The token column was dropped in a previous migration step (ALTER TABLE webhooks DROP COLUMN IF EXISTS token), but the CREATE INDEX referencing it still ran, causing migration failure on databases where the column was already removed. --- internal/db/db.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/db/db.go b/internal/db/db.go index 2814eb4..39a1cf9 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -183,7 +183,6 @@ CREATE INDEX IF NOT EXISTS idx_bots_token ON bots(token); CREATE INDEX IF NOT EXISTS idx_bot_servers_bot ON bot_servers(bot_id); CREATE INDEX IF NOT EXISTS idx_slash_commands_server ON slash_commands(server_id, name); CREATE INDEX IF NOT EXISTS idx_webhooks_channel ON webhooks(channel_id); -CREATE INDEX IF NOT EXISTS idx_webhooks_token ON webhooks(token); -- Add token_hash column for secure webhook token storage ALTER TABLE webhooks ADD COLUMN IF NOT EXISTS token_hash VARCHAR(64);