sorarebuddy/db/migrations/00007_membership_indexes.sql

6 lines
236 B
MySQL
Raw Normal View History

2024-06-06 05:52:54 +00:00
-- +goose Up
CREATE INDEX IF NOT EXISTS idx_memberships_on_player_slug_start_date_end_date ON memberships(player_slug, start_date, end_date);
-- +goose Down
DROP INDEX IF EXISTS idx_memberships_on_player_slug_start_date_end_date;