From e139e9c724ee06f1191e5db1f4da0d20006b106b Mon Sep 17 00:00:00 2001 From: Filipe Oliveira Date: Tue, 9 Apr 2024 09:08:21 +0100 Subject: [PATCH] CORE-19289 - Updated the table `utxo_visible_transaction_output` (#1598) Added the column `token_priority` to the database table `utxo_visible_transaction_output`. Created an index that uses the `token_priority` and `transaction_id` columns. Note: 1) Liquibase does not support the creation of an index where NULL values are last unless we write the SQL code ourselves. (See reference: https://docs.liquibase.com/change-types/create-index.html) 2) Postgres reference for creating an index with the `NULLS LAST` option: https://www.postgresql.org/docs/current/indexes-ordering.html --- .../vnode-vault/db.changelog-master.xml | 1 + .../migration/ledger-utxo-creation-v5.3.xml | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.3.xml diff --git a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/db.changelog-master.xml b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/db.changelog-master.xml index 9e8cba5cd3..f501effcc3 100644 --- a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/db.changelog-master.xml +++ b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/db.changelog-master.xml @@ -7,5 +7,6 @@ + diff --git a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.3.xml b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.3.xml new file mode 100644 index 0000000000..0d4b245c21 --- /dev/null +++ b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.3.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + +