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 9aa5e97485..775063323d 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 @@ -126,7 +126,10 @@ - + + + + @@ -150,7 +153,8 @@ INSERT INTO utxo_transaction_metadata SELECT hash, - convert_from(data, 'UTF-8')::jsonb AS data, + data as canonical_data, + convert_from(data, 'UTF-8')::jsonb AS json_data, convert_from(data, 'UTF-8')::jsonb->'membershipGroupParametersHash' AS group_parameters_hash, convert_from(data, 'UTF-8')::jsonb->'cpiMetadata'->'fileChecksum' AS cpi_file_checksum FROM