[PATCH] SCHEMA CHANGE: 'comment' is not acceptable as column name for Oracle

Wald Commits scm-commit at wald.intevation.org
Wed Oct 15 19:48:24 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1413395300 -7200
# Node ID ffbeffe2d26698a27d7e4cf12cf0f299c4c2d564
# Parent  8e1c9ce1c7c62a8b1e4495ed63e455bde3e8ee4c
SCHEMA CHANGE: 'comment' is not acceptable as column name for Oracle.

diff -r 8e1c9ce1c7c6 -r ffbeffe2d266 backend/doc/schema/oracle-minfo.sql
--- a/backend/doc/schema/oracle-minfo.sql	Wed Oct 15 19:42:19 2014 +0200
+++ b/backend/doc/schema/oracle-minfo.sql	Wed Oct 15 19:48:20 2014 +0200
@@ -319,7 +319,7 @@
     -- store name of reference gauges here too, as not all are in gauges
     reference_gauge_name     VARCHAR2(64 CHAR),
     operator                 VARCHAR2(64 CHAR),
-    comment                  VARCHAR2(512 CHAR),
+    commentary               VARCHAR2(512 CHAR),
     PRIMARY KEY (id),
     CONSTRAINT fk_ms_range_id FOREIGN KEY (range_id)
         REFERENCES ranges(id) ON DELETE CASCADE,
diff -r 8e1c9ce1c7c6 -r ffbeffe2d266 backend/doc/schema/postgresql-minfo.sql
--- a/backend/doc/schema/postgresql-minfo.sql	Wed Oct 15 19:42:19 2014 +0200
+++ b/backend/doc/schema/postgresql-minfo.sql	Wed Oct 15 19:48:20 2014 +0200
@@ -319,7 +319,7 @@
     -- store name of reference gauges here too, as not all are in gauges
     reference_gauge_name     VARCHAR(64),
     operator                 VARCHAR(64),
-    comment                  VARCHAR(512),
+    commentary               VARCHAR(512),
     PRIMARY KEY (id),
     CONSTRAINT fk_ms_range_id FOREIGN KEY (range_id)
         REFERENCES ranges(id) ON DELETE CASCADE,
diff -r 8e1c9ce1c7c6 -r ffbeffe2d266 backend/src/main/java/org/dive4elements/river/model/MeasurementStation.java
--- a/backend/src/main/java/org/dive4elements/river/model/MeasurementStation.java	Wed Oct 15 19:42:19 2014 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/MeasurementStation.java	Wed Oct 15 19:48:20 2014 +0200
@@ -154,7 +154,7 @@
         this.operator = operator;
     }
 
-    @Column(name = "comment")
+    @Column(name = "commentary")
     public String getComment() {
         return comment;
     }


More information about the Dive4Elements-commits mailing list