From 148addb24d2f77b05339f72d3fb4ac8e7798f4c6 Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Thu, 5 Aug 2021 08:25:47 +0530 Subject: [PATCH] Update comment for query change --- db/migrations/00014_create_stored_functions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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