From 0c98c01ca495d5ffa216fe109d705f1494c21123 Mon Sep 17 00:00:00 2001 From: Dmytro Haidashenko Date: Fri, 20 Dec 2024 19:33:17 +0100 Subject: [PATCH] Added is_backfiled filed to solana's filter table --- .../0263_solana_filter_is_backfilled.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 core/store/migrate/migrations/0263_solana_filter_is_backfilled.sql diff --git a/core/store/migrate/migrations/0263_solana_filter_is_backfilled.sql b/core/store/migrate/migrations/0263_solana_filter_is_backfilled.sql new file mode 100644 index 00000000000..7e81e7c4c5e --- /dev/null +++ b/core/store/migrate/migrations/0263_solana_filter_is_backfilled.sql @@ -0,0 +1,14 @@ +-- +goose Up +-- +goose StatementBegin + +ALTER TABLE solana.log_poller_filters ADD COLUMN is_backfilled BOOLEAN; +UPDATE solana.log_poller_filters SET is_backfilled = true; +ALTER TABLE solana.log_poller_filters ALTER COLUMN is_backfilled SET NOT NULL; +-- +goose StatementEnd + + +-- +goose Down +-- +goose StatementBegin + +ALTER TABLE solana.log_poller_filters DROP COLUMN is_backfilled; +-- +goose StatementEnd