From 567c9f6a3d30d19eb24d215ad00d1bf07b7faeac Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Sat, 13 Dec 2025 23:22:37 +0000 Subject: [PATCH] Adjust database indexing for giveaways Remove incomplete index creation for giveaways table in migration script. Replit-Commit-Author: Agent Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 7243d928-560b-47a6-aa57-9441cd010dcf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/2a77Jky Replit-Helium-Checkpoint-Created: true --- aethex-bot/migrations/create_all_tables.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aethex-bot/migrations/create_all_tables.sql b/aethex-bot/migrations/create_all_tables.sql index 1e64002..9c2aedd 100644 --- a/aethex-bot/migrations/create_all_tables.sql +++ b/aethex-bot/migrations/create_all_tables.sql @@ -500,7 +500,7 @@ CREATE INDEX IF NOT EXISTS idx_user_stats_guild ON user_stats(guild_id); CREATE INDEX IF NOT EXISTS idx_periodic_xp_period ON periodic_xp(period_type, period_start); CREATE INDEX IF NOT EXISTS idx_warnings_guild ON warnings(guild_id); CREATE INDEX IF NOT EXISTS idx_mod_actions_guild ON mod_actions(guild_id); -CREATE INDEX IF NOT EXISTS idx_giveaways_ends ON giveaways(ends_at) WHERE ended = false; +-- Note: Index on giveaways will be created after table exists with correct columns CREATE INDEX IF NOT EXISTS idx_scheduled_messages_send ON scheduled_messages(send_at) WHERE sent = false; -- ============ RLS POLICIES ============