From 8a10943c6f00bd0a269c6cc88c3a619c2fd4ec07 Mon Sep 17 00:00:00 2001 From: "puthuparambil.aditya" Date: Mon, 24 May 2021 13:53:07 +0100 Subject: Update db schema to keep field name consistent with domain property Rollback need not be specified for renameColumn as per documentation: https://docs.liquibase.com/workflows/liquibase-community/using-rollback.html Issue-ID: CPS-425 Signed-off-by: puthuparambil.aditya Change-Id: Ida1cf80e7cd180c7b713bc595105fa83f4f6b278 --- src/main/java/org/onap/cps/temporal/domain/NetworkData.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/onap/cps/temporal/domain/NetworkData.java b/src/main/java/org/onap/cps/temporal/domain/NetworkData.java index c4f3176..aa2ce95 100644 --- a/src/main/java/org/onap/cps/temporal/domain/NetworkData.java +++ b/src/main/java/org/onap/cps/temporal/domain/NetworkData.java @@ -48,10 +48,10 @@ import org.hibernate.annotations.TypeDef; @TypeDef(name = "jsonb", typeClass = JsonBinaryType.class) public class NetworkData implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = -8032810412816532433L; @Id - @Column(name = "timestamp") + @Column private OffsetDateTime observedTimestamp; @Id @@ -72,7 +72,7 @@ public class NetworkData implements Serializable { private String payload; @CreationTimestamp - @Column(name = "version", updatable = false) + @Column(updatable = false) private OffsetDateTime createdTimestamp; } -- cgit 1.2.3-korg