Skip to content

Commit

Permalink
feat(migrations): add indexes for channels games tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed May 2, 2024
1 parent f22f3da commit 3a3807f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions libs/migrations/migrations/20240502221830_create_games_indexes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- +goose Up
-- +goose StatementBegin
SELECT 'up SQL query';

CREATE UNIQUE INDEX channels_games_8ball_channel_id_idx ON channels_games_8ball (channel_id);
CREATE UNIQUE INDEX channels_games_duel_channel_id_idx ON channels_games_duel (channel_id);
CREATE UNIQUE INDEX channels_games_russian_roulette_channel_id_idx ON channels_games_russian_roulette (channel_id);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
SELECT 'down SQL query';
-- +goose StatementEnd

0 comments on commit 3a3807f

Please sign in to comment.