Skip to content

Commit

Permalink
feat(migrations): add indexes for users, channels, users_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed May 2, 2024
1 parent fe3e109 commit 7f994f7
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- +goose Up
-- +goose StatementBegin
SELECT 'up SQL query';

CREATE INDEX users_userid_idx ON users("id");
CREATE INDEX channels_channelid_idx ON channels("id");
CREATE INDEX users_stats_userid_idx ON users_stats("userId");
-- +goose StatementEnd

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

0 comments on commit 7f994f7

Please sign in to comment.