Mercurial > dive4elements > river
changeset 194:0f0b98ef9b04
Fixed wrong unique constraint.
flys-backend/trunk@1532 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 21 Mar 2011 10:52:33 +0000 |
parents | 31c48d54f09d |
children | 8d3533a03e10 |
files | flys-backend/ChangeLog flys-backend/doc/schema/postgresql.sql flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/ChangeLog Mon Mar 21 10:41:47 2011 +0000 +++ b/flys-backend/ChangeLog Mon Mar 21 10:52:33 2011 +0000 @@ -1,3 +1,10 @@ +2011-03-21 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * doc/schema/postgresql.sql: Fixed wrong unique constraint. + + * src/main/java/de/intevation/flys/importer/ImportRiver.java: + Added some logging when storing gauges. + 2011-03-21 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/model/Gauge.java:
--- a/flys-backend/doc/schema/postgresql.sql Mon Mar 21 10:41:47 2011 +0000 +++ b/flys-backend/doc/schema/postgresql.sql Mon Mar 21 10:52:33 2011 +0000 @@ -62,7 +62,7 @@ range_id int NOT NULL REFERENCES ranges (id), UNIQUE (name, river_id), - UNIQUE (river_id, datum) + UNIQUE (river_id, station) ); -- Type of a Hauptwert 'W', 'Q', 'D', etc.
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java Mon Mar 21 10:41:47 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java Mon Mar 21 10:52:33 2011 +0000 @@ -110,8 +110,10 @@ } public void storeGauges() { + log.info("store gauges:"); River river = getPeer(); for (ImportGauge gauge: gauges) { + log.info("\tgauge: " + gauge.getName()); gauge.storeDependencies(river); } }