Rename column HOST to HOST_NAME in table NODE_INFO_HOSTS - required by ENT-2253

This commit is contained in:
szymonsztuka 2018-08-23 11:20:24 +01:00
parent 487cad7d06
commit c4f33ef533
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>