diff --git a/libs/migrations/migrations/20240502222947_users_stats_userid_index.sql b/libs/migrations/migrations/20240502222947_users_stats_userid_index.sql new file mode 100644 index 000000000..f824f4545 --- /dev/null +++ b/libs/migrations/migrations/20240502222947_users_stats_userid_index.sql @@ -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