mirror of
https://github.com/corda/corda.git
synced 2024-12-23 14:52:29 +00:00
Add liquibase scripts for network parameters storage (#4324)
This commit is contained in:
parent
4906358aa8
commit
3f99d336b3
@ -12,5 +12,6 @@
|
||||
<include file="migration/node-core.changelog-postgres-blob.xml"/>
|
||||
<include file="migration/node-core.changelog-v8.xml"/>
|
||||
<include file="migration/node-core.changelog-tx-mapping.xml"/>
|
||||
<include file="migration/node-core.changelog-v9.xml"/>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
31
node/src/main/resources/migration/node-core.changelog-v9.xml
Normal file
31
node/src/main/resources/migration/node-core.changelog-v9.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
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_network_parameters_storage">
|
||||
<createTable tableName="node_network_parameters">
|
||||
<column name="hash" type="NVARCHAR(130)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="epoch" type="INT">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="parameters_bytes" type="BLOB">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="signature_bytes" type="BLOB">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="cert" type="BLOB">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="parent_cert_path" type="BLOB">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
<changeSet author="R3.Corda" id="network_parameters_pk">
|
||||
<addPrimaryKey columnNames="hash" constraintName="node_network_parameters_pkey" tableName="node_network_parameters"/>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
Loading…
Reference in New Issue
Block a user