Merge pull request #3845 from corda/feature/ent-2253-rename-colun-name

Database column rename required by ENT-2253
This commit is contained in:
PokeyBot 2018-08-24 10:15:25 +01:00 committed by GitHub
commit 8b0fc8f29c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -72,6 +72,7 @@ object NodeInfoSchemaV1 : MappedSchema(
@GeneratedValue
@Column(name = "hosts_id", nullable = false)
var id: Int,
@Column(name = "host_name")
val host: String? = null,
val port: Int? = null
) {

View File

@ -7,5 +7,6 @@
<include file="migration/node-info.changelog-init.xml"/>
<include file="migration/node-info.changelog-v1.xml"/>
<include file="migration/node-info.changelog-v2.xml"/>
<include file="migration/node-info.changelog-v3.xml"/>
</databaseChangeLog>

View File

@ -0,0 +1,9 @@
<?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">
<changeSet author="R3.Corda" id="column_host_name">
<renameColumn newColumnName="host_name" oldColumnName="host" tableName="node_info_hosts"/>
</changeSet>
</databaseChangeLog>