diff options
author | 2021-05-24 13:53:07 +0100 | |
---|---|---|
committer | 2021-05-26 12:31:44 +0100 | |
commit | 8a10943c6f00bd0a269c6cc88c3a619c2fd4ec07 (patch) | |
tree | 0e6e2477c432a4ba02ea0d1916888c1c6b51c992 /src/main/java | |
parent | 25050c117a6e69946de4f70503afa74cdef78aa7 (diff) |
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 <aditya.puthuparambil@bell.ca>
Change-Id: Ida1cf80e7cd180c7b713bc595105fa83f4f6b278
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/cps/temporal/domain/NetworkData.java | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |