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
This commit is contained in:
parent
c8bab3f4de
commit
567c9f6a3d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ============
|
||||
|
|
|
|||
Loading…
Reference in a new issue