Skip to content

Commit

Permalink
drop index_history_operations_on_is_payment
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms committed Sep 22, 2023
1 parent 04c5370 commit f00ce6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
-- +migrate Up

ALTER TABLE history_operations ADD is_payment boolean;
CREATE INDEX "index_history_operations_on_is_payment" ON history_operations (is_payment)
WHERE is_payment = true;

-- +migrate Down

DROP INDEX "index_history_operations_on_is_payment";
ALTER TABLE history_operations DROP COLUMN is_payment;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +migrate Up

-- index_history_operations_on_is_payment was added in migration 64 but it turns out
-- the index was not necessary, see https://github.com/stellar/go/issues/5059
DROP INDEX IF EXISTS "index_history_operations_on_is_payment";

-- +migrate Down

CREATE INDEX "index_history_operations_on_is_payment" ON history_operations USING btree (is_payment);

0 comments on commit f00ce6b

Please sign in to comment.