Skip to content

Commit

Permalink
Change default for logs_per_block & max_logs_kept columns from NULL t…
Browse files Browse the repository at this point in the history
…o 0 (#12213)
  • Loading branch information
reductionista authored Feb 29, 2024
1 parent f1cf682 commit df03e3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ALTER TABLE evm.log_poller_filters
ADD COLUMN topic2 BYTEA CHECK (octet_length(topic2) = 32),
ADD COLUMN topic3 BYTEA CHECK (octet_length(topic3) = 32),
ADD COLUMN topic4 BYTEA CHECK (octet_length(topic4) = 32),
ADD COLUMN max_logs_kept BIGINT,
ADD COLUMN logs_per_block BIGINT;
ADD COLUMN max_logs_kept BIGINT NOT NULL DEFAULT 0,
ADD COLUMN logs_per_block BIGINT NOT NULL DEFAULT 0;

CREATE UNIQUE INDEX log_poller_filters_hash_key ON evm.log_poller_filters (evm.f_log_poller_filter_hash(name, evm_chain_id, address, event, topic2, topic3, topic4));

Expand Down

0 comments on commit df03e3b

Please sign in to comment.