Skip to content

Commit

Permalink
fix: fix migrations for goose to run concurrently
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Jan 13, 2025
1 parent 71c71d9 commit 9de41df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
-- +goose NO TRANSACTION

-- +goose Up
-- +goose StatementBegin
SELECT 'creating idx_blocks_status_depositscountgt0';
-- +goose StatementBegin
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_blocks_status_depositscountgt0 ON blocks (status, (depositscount > 0)) where depositscount > 0;
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
SELECT 'dropping idx_blocks_status_depositscountgt0';
-- +goose StatementBegin
DROP INDEX CONCURRENTLY IF EXISTS idx_blocks_status_depositscountgt0;
-- +goose StatementEnd

0 comments on commit 9de41df

Please sign in to comment.