Updated changeset to match Enterprise

This commit is contained in:
Chris Cochrane 2023-11-13 17:07:49 +00:00
parent f40b6599fe
commit 9065c1703a
No known key found for this signature in database
GPG Key ID: E20C3731120606AB
2 changed files with 11 additions and 2 deletions

View File

@ -37,6 +37,7 @@ import net.corda.nodeapi.internal.persistence.contextTransactionOrNull
import net.corda.nodeapi.internal.persistence.currentDBSession
import net.corda.nodeapi.internal.persistence.wrapWithDatabaseTransaction
import net.corda.serialization.internal.CordaSerializationEncoding.SNAPPY
import org.hibernate.annotations.Type
import rx.Observable
import rx.subjects.PublishSubject
import java.time.Instant
@ -78,6 +79,7 @@ open class DBTransactionStorage(private val database: CordaPersistence, cacheFac
val timestamp: Instant,
@Column(name = "signatures")
@Type(type = "corda-blob")
val signatures: ByteArray?
)

View File

@ -4,9 +4,16 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"
logicalFilePath="migration/node-services.changelog-init.xml">
<changeSet author="R3.Corda" id="add_signatures_column">
<changeSet author="R3.Corda" id="add_signatures_column" dbms="postgresql">
<addColumn tableName="node_transactions">
<column name="signatures" type="VARBINARY(33554432)"/>
<column name="signatures" type="varbinary(33554432)"/>
</addColumn>
</changeSet>
<changeSet author="R3.Corda" id="add_signatures_column" dbms="!postgresql">
<addColumn tableName="node_transactions">
<column name="signatures" type="blob"/>
</addColumn>
</changeSet>
</databaseChangeLog>