From 2ce8960ebec29b37b63da2af9614b04e831c0108 Mon Sep 17 00:00:00 2001 From: Lajos Veres Date: Tue, 10 Oct 2023 10:50:08 +0100 Subject: [PATCH] CORE-17431 utxo_transaction_metadata table and related migrations --- .../migration/ledger-utxo-creation-v5.1.xml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml index b958807b00..d4b79d2923 100644 --- a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml +++ b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml @@ -121,6 +121,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO utxo_transaction_metadata + SELECT + hash, + convert_from(data, 'UTF-8')::jsonb AS data, + convert_from(data, 'UTF-8')::jsonb->'cpiMetadata'->'fileChecksum' AS cpi_file_checksum_hash, + convert_from(data, 'UTF-8')::jsonb->'membershipGroupParametersHash' AS group_parameters_hash + FROM + utxo_transaction_component + WHERE + group_idx=0 and + leaf_idx=0; + + + + + + + + + + \ No newline at end of file