Shorten table name (#4331)

This commit is contained in:
Thomas Schroeter
2018-11-30 14:36:27 +00:00
committed by GitHub
parent a9ff8a0818
commit 27a80900bd
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class PersistentUniquenessProvider(val clock: Clock, val database: CordaPersiste
) )
@Entity @Entity
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}notary_committed_transactions") @javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}notary_committed_txs")
class CommittedTransaction( class CommittedTransaction(
@Id @Id
@Column(name = "transaction_id", nullable = false, length = 64) @Column(name = "transaction_id", nullable = false, length = 64)

View File

@ -4,11 +4,11 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
<changeSet author="R3.Corda" id="create-notary-committed-transactions-table"> <changeSet author="R3.Corda" id="create-notary-committed-transactions-table">
<createTable tableName="node_notary_committed_transactions"> <createTable tableName="node_notary_committed_txs">
<column name="transaction_id" type="NVARCHAR(64)"> <column name="transaction_id" type="NVARCHAR(64)">
<constraints nullable="false"/> <constraints nullable="false"/>
</column> </column>
</createTable> </createTable>
<addPrimaryKey columnNames="transaction_id" constraintName="node_notary_transactions_pkey" tableName="node_notary_committed_transactions"/> <addPrimaryKey columnNames="transaction_id" constraintName="node_notary_transactions_pkey" tableName="node_notary_committed_txs"/>
</changeSet> </changeSet>
</databaseChangeLog> </databaseChangeLog>