From c4f33ef533fc5f91d62de8644b00e3bb1b661de5 Mon Sep 17 00:00:00 2001 From: szymonsztuka Date: Thu, 23 Aug 2018 11:20:24 +0100 Subject: [PATCH] Rename column HOST to HOST_NAME in table NODE_INFO_HOSTS - required by ENT-2253 --- .../net/corda/node/internal/schemas/NodeInfoSchema.kt | 1 + .../resources/migration/node-info.changelog-master.xml | 1 + .../main/resources/migration/node-info.changelog-v3.xml | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 node/src/main/resources/migration/node-info.changelog-v3.xml diff --git a/node/src/main/kotlin/net/corda/node/internal/schemas/NodeInfoSchema.kt b/node/src/main/kotlin/net/corda/node/internal/schemas/NodeInfoSchema.kt index 13c57cf8da..024fcf74ca 100644 --- a/node/src/main/kotlin/net/corda/node/internal/schemas/NodeInfoSchema.kt +++ b/node/src/main/kotlin/net/corda/node/internal/schemas/NodeInfoSchema.kt @@ -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 ) { diff --git a/node/src/main/resources/migration/node-info.changelog-master.xml b/node/src/main/resources/migration/node-info.changelog-master.xml index 4c1a49441c..b5f43abc1c 100644 --- a/node/src/main/resources/migration/node-info.changelog-master.xml +++ b/node/src/main/resources/migration/node-info.changelog-master.xml @@ -7,5 +7,6 @@ + diff --git a/node/src/main/resources/migration/node-info.changelog-v3.xml b/node/src/main/resources/migration/node-info.changelog-v3.xml new file mode 100644 index 0000000000..20f24bd33c --- /dev/null +++ b/node/src/main/resources/migration/node-info.changelog-v3.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file