Skip to content

Commit 9de41df

Browse files
committed
fix: fix migrations for goose to run concurrently
1 parent 71c71d9 commit 9de41df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
-- +goose NO TRANSACTION
22

33
-- +goose Up
4-
-- +goose StatementBegin
54
SELECT 'creating idx_blocks_status_depositscountgt0';
5+
-- +goose StatementBegin
66
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_blocks_status_depositscountgt0 ON blocks (status, (depositscount > 0)) where depositscount > 0;
77
-- +goose StatementEnd
88

99
-- +goose Down
10-
-- +goose StatementBegin
1110
SELECT 'dropping idx_blocks_status_depositscountgt0';
11+
-- +goose StatementBegin
1212
DROP INDEX CONCURRENTLY IF EXISTS idx_blocks_status_depositscountgt0;
1313
-- +goose StatementEnd

0 commit comments

Comments
 (0)