From 1e00cfd436639bb378a79f000cc4418f9f0c21ad Mon Sep 17 00:00:00 2001 From: Kyriakos Tharrouniatis Date: Wed, 20 Sep 2023 13:46:47 +0100 Subject: [PATCH] CORE-13621 Idempotency id table definition (#1222) * Introduces table in vnode-vault schema which holds executed persistence requests (ids) from `PersistenceService`, to be used for deduplicating them --- .../src/main/java/net/corda/db/schema/DbSchema.java | 1 + .../vnode-vault/migration/vnode-vault-creation-v5.1.xml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/data/db-schema/src/main/java/net/corda/db/schema/DbSchema.java b/data/db-schema/src/main/java/net/corda/db/schema/DbSchema.java index a0956525a2..b1258ab5b1 100644 --- a/data/db-schema/src/main/java/net/corda/db/schema/DbSchema.java +++ b/data/db-schema/src/main/java/net/corda/db/schema/DbSchema.java @@ -38,6 +38,7 @@ private DbSchema() { public static final String VNODE_GROUP_PARAMETERS = "vnode_group_parameters"; public static final String VNODE_GROUP_APPROVAL_RULES = "vnode_group_approval_rules"; public static final String VNODE_PRE_AUTH_TOKENS = "vnode_pre_auth_tokens"; + public static final String VNODE_PERSISTENCE_REQUEST_ID_TABLE = "vnode_persistence_request_id"; public static final String LEDGER_CONSENSUAL_TRANSACTION_TABLE = "consensual_transaction"; public static final String LEDGER_CONSENSUAL_TRANSACTION_STATUS_TABLE = "consensual_transaction_status"; diff --git a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/vnode-vault-creation-v5.1.xml b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/vnode-vault-creation-v5.1.xml index 18a92a0a8b..7f930c12f7 100644 --- a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/vnode-vault-creation-v5.1.xml +++ b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/vnode-vault-creation-v5.1.xml @@ -6,5 +6,11 @@ + + + + + + \ No newline at end of file