diff --git a/db/migrations/00014_create_stored_functions.sql b/db/migrations/00014_create_stored_functions.sql index 6cbebc03..0aa5c5f3 100644 --- a/db/migrations/00014_create_stored_functions.sql +++ b/db/migrations/00014_create_stored_functions.sql @@ -1,6 +1,6 @@ -- +goose Up -- +goose StatementBegin --- returns if a storage node at the provided path was removed in the range > the provided height and <= the provided block hash +-- returns if a storage node at the provided path was removed in the range >= the provided height and <= the provided block hash CREATE OR REPLACE FUNCTION was_storage_removed(path BYTEA, height BIGINT, hash VARCHAR(66)) RETURNS BOOLEAN AS $$ SELECT exists(SELECT 1