[Lada-commits] [PATCH] Rev d1d7d684800c missed to adapt default FK value

Wald Commits scm-commit at wald.intevation.org
Fri Oct 28 16:50:06 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1477666187 -7200
# Node ID 7061388e0af7a5a255d458f0bd6cbb92559cb646
# Parent  d1d7d684800ca4d9c2587b497f62a00d28e6ab9c
Rev d1d7d684800c missed to adapt default FK value.

diff -r d1d7d684800c -r 7061388e0af7 db_schema/lada_schema.sql
--- a/db_schema/lada_schema.sql	Fri Oct 28 11:58:52 2016 +0200
+++ b/db_schema/lada_schema.sql	Fri Oct 28 16:49:47 2016 +0200
@@ -119,7 +119,7 @@
     mst_id character varying(5) NOT NULL REFERENCES stammdaten.mess_stelle,
     labor_mst_id character varying(5) NOT NULL REFERENCES stammdaten.mess_stelle,
     datenbasis_id integer NOT NULL REFERENCES stammdaten.datenbasis,
-    ba_id integer DEFAULT 0 REFERENCES stammdaten.betriebsart,
+    ba_id integer DEFAULT 1 REFERENCES stammdaten.betriebsart,
     gem_id character varying(8) REFERENCES stammdaten.verwaltungseinheit,
     ort_id integer NOT NULL REFERENCES stammdaten.ort,
     media_desk character varying(100),
diff -r d1d7d684800c -r 7061388e0af7 src/main/java/de/intevation/lada/model/land/Messprogramm.java
--- a/src/main/java/de/intevation/lada/model/land/Messprogramm.java	Fri Oct 28 11:58:52 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/land/Messprogramm.java	Fri Oct 28 16:49:47 2016 +0200
@@ -31,7 +31,7 @@
     @PrePersist
     void setDefaults() {
         if (baId == null) {
-            baId = 0;
+            baId = 1;
         }
         if (intervallOffset == null) {
             intervallOffset = 0;


More information about the Lada-commits mailing list