Skip to content

Commit

Permalink
Make index_history_operations_on_is_payment a partial index
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms committed Sep 19, 2023
1 parent c6e34b5 commit 14f2fa6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-- +migrate Up

ALTER TABLE history_operations ADD is_payment boolean;
CREATE INDEX "index_history_operations_on_is_payment" ON history_operations USING btree (is_payment);
CREATE INDEX "index_history_operations_on_is_payment" ON history_operations (is_payment)
WHERE is_payment IS NOT NULL;

-- +migrate Down

Expand Down

0 comments on commit 14f2fa6

Please sign in to comment.