From 9fc291af6ddd2d4155ce3ab77c79965994e663e0 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Wed, 20 Mar 2024 13:31:53 +0800 Subject: [PATCH] fix: replace message related to json into JSON type from JSONB --- database/schema/00-cosmos.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/schema/00-cosmos.sql b/database/schema/00-cosmos.sql index ab048306a..e0785658d 100644 --- a/database/schema/00-cosmos.sql +++ b/database/schema/00-cosmos.sql @@ -43,7 +43,7 @@ CREATE TABLE transaction success BOOLEAN NOT NULL, /* Body */ - messages JSONB NOT NULL DEFAULT '[]'::JSONB, + messages JSON NOT NULL DEFAULT '[]'::JSON, memo TEXT, signatures TEXT[] NOT NULL, @@ -81,7 +81,7 @@ CREATE TABLE message transaction_hash TEXT NOT NULL, index BIGINT NOT NULL, type TEXT NOT NULL REFERENCES message_type(type), - value JSONB NOT NULL, + value JSON NOT NULL, involved_accounts_addresses TEXT[] NOT NULL, /* PSQL partition */