sorarebuddy/db/migrations/00007_membership_indexes.sql
2024-05-23 08:18:54 +04:00

6 lines
231 B
SQL

-- +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;