From 238608224b2260da8429c40456fcdd92db8c0991 Mon Sep 17 00:00:00 2001 From: Adel El-Beik <48713346+adelel1@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:01:44 +0100 Subject: [PATCH] =?UTF-8?q?ENT-10607:=20Reduced=20length=20of=20distributi?= =?UTF-8?q?on=20records=20table=20name=20to=20under=E2=80=A6=20(#7505)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ENT-10607: Reduced length of distribution records table name to under 30 chars for Oracle. * ENT-10607: Need to update the entity classes as well. --- .../flows/FinalityFlowErrorHandlingTest.kt | 2 +- .../DBTransactionStorageLedgerRecovery.kt | 4 ++-- .../migration/node-core.changelog-v25.xml | 24 +++++++++---------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/node/src/integration-test-slow/kotlin/net/corda/node/flows/FinalityFlowErrorHandlingTest.kt b/node/src/integration-test-slow/kotlin/net/corda/node/flows/FinalityFlowErrorHandlingTest.kt index 9617c21fb3..2ea07f4c7a 100644 --- a/node/src/integration-test-slow/kotlin/net/corda/node/flows/FinalityFlowErrorHandlingTest.kt +++ b/node/src/integration-test-slow/kotlin/net/corda/node/flows/FinalityFlowErrorHandlingTest.kt @@ -94,7 +94,7 @@ class GetFlowTransaction(private val txId: SecureHash) : FlowLogic ps.executeQuery().use { rs -> diff --git a/node/src/main/kotlin/net/corda/node/services/persistence/DBTransactionStorageLedgerRecovery.kt b/node/src/main/kotlin/net/corda/node/services/persistence/DBTransactionStorageLedgerRecovery.kt index 69df1fe9b3..31c5dc4a59 100644 --- a/node/src/main/kotlin/net/corda/node/services/persistence/DBTransactionStorageLedgerRecovery.kt +++ b/node/src/main/kotlin/net/corda/node/services/persistence/DBTransactionStorageLedgerRecovery.kt @@ -54,7 +54,7 @@ class DBTransactionStorageLedgerRecovery(private val database: CordaPersistence, @CordaSerializable @Entity - @Table(name = "${NODE_DATABASE_PREFIX}sender_distribution_records") + @Table(name = "${NODE_DATABASE_PREFIX}sender_distr_recs") data class DBSenderDistributionRecord( @EmbeddedId var compositeKey: PersistentKey, @@ -77,7 +77,7 @@ class DBTransactionStorageLedgerRecovery(private val database: CordaPersistence, @CordaSerializable @Entity - @Table(name = "${NODE_DATABASE_PREFIX}receiver_distribution_records") + @Table(name = "${NODE_DATABASE_PREFIX}receiver_distr_recs") class DBReceiverDistributionRecord( @EmbeddedId var compositeKey: PersistentKey, diff --git a/node/src/main/resources/migration/node-core.changelog-v25.xml b/node/src/main/resources/migration/node-core.changelog-v25.xml index 9ea40bada9..c720483efa 100644 --- a/node/src/main/resources/migration/node-core.changelog-v25.xml +++ b/node/src/main/resources/migration/node-core.changelog-v25.xml @@ -11,7 +11,7 @@ - + @@ -30,13 +30,13 @@ - - + + - + @@ -58,9 +58,9 @@ - - + + @@ -79,14 +79,14 @@ - -