Skip to content

Commit

Permalink
Add migration to add indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
xwjdsh authored and lyricat committed Mar 23, 2023
1 parent 0ae6ecc commit f2fadb3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions store/migrations/20230323162203_add_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 INDEX idx_orders_status ON "orders" USING BTREE("status");
CREATE INDEX idx_conv_turns_status ON "conv_turns" USING BTREE("status");
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
SELECT 'down SQL query';
DROP INDEX IF EXISTS idx_orders_status;
DROP INDEX IF EXISTS idx_conv_turns_status;
-- +goose StatementEnd

0 comments on commit f2fadb3

Please sign in to comment.