From c3b156b6bd202870eaa6ae037b25aaada11c6852 Mon Sep 17 00:00:00 2001 From: krehermann Date: Wed, 10 Jan 2024 17:48:55 -0700 Subject: [PATCH] BCF-2883 remove stranded, unused db func evm.notifytxinsertion (#11739) --- .../migrations/0219_drop_notifytxinsertion.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 core/store/migrate/migrations/0219_drop_notifytxinsertion.sql diff --git a/core/store/migrate/migrations/0219_drop_notifytxinsertion.sql b/core/store/migrate/migrations/0219_drop_notifytxinsertion.sql new file mode 100644 index 00000000000..9569fa48728 --- /dev/null +++ b/core/store/migrate/migrations/0219_drop_notifytxinsertion.sql @@ -0,0 +1,16 @@ +-- +goose Up +-- +goose StatementBegin +DROP FUNCTION IF EXISTS evm.notifytxinsertion(); +-- +goose StatementEnd + +-- +goose Down +-- +goose StatementBegin +CREATE OR REPLACE FUNCTION evm.notifytxinsertion() RETURNS trigger + LANGUAGE plpgsql + AS $$ + BEGIN + PERFORM pg_notify('evm.insert_on_txes'::text, encode(NEW.from_address, 'hex')); + RETURN NULL; + END + $$; +-- +goose StatementEnd