Mercurial > dive4elements > river
changeset 4109:8ba11e13ae8a
AFT-Import: Insert
new discharge tables as 'Historische Abflusstafel' kind.
flys-aft/trunk@3956 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 08 Feb 2012 09:43:12 +0000 (2012-02-08) |
parents | 4c2b99d6af6c |
children | 06891562e633 |
files | flys-aft/ChangeLog flys-aft/src/main/resources/sql/flys-common.properties |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-aft/ChangeLog Wed Jan 11 17:53:32 2012 +0000 +++ b/flys-aft/ChangeLog Wed Feb 08 09:43:12 2012 +0000 @@ -1,3 +1,8 @@ +2012-02-08 Sascha L. Teichmann <sascha.teichmann@inteavtion.de> + + * src/main/resources/sql/flys-common.properties: Insert + new discharge tables as 'Historische Abflusstafel' kind. + 2012-01-11 Sascha L. Teichmann <sascha.teichmann@inteavtion.de> * src/main/resources/sql/flys-oracle-jdbc-oracledriver.properties:
--- a/flys-aft/src/main/resources/sql/flys-common.properties Wed Jan 11 17:53:32 2012 +0000 +++ b/flys-aft/src/main/resources/sql/flys-common.properties Wed Feb 08 09:43:12 2012 +0000 @@ -8,7 +8,7 @@ insert.timeinterval = INSERT INTO time_intervals (id, start_time, stop_time) VALUES (:id, :start_time, :stop_time) next.discharge.id = SELECT NEXTVAL('DISCHARGE_TABLES_ID_SEQ') AS discharge_table_id insert.dischargetable = INSERT INTO discharge_tables (id, gauge_id, description, kind, time_interval_id) \ - VALUES (:id, :gauge_id, :description, 0, :time_interval_id) + VALUES (:id, :gauge_id, :description, 1, :time_interval_id) select.discharge.table.values = SELECT id, w, q FROM discharge_table_values WHERE table_id = :table_id next.discharge.table.values.id = SELECT NEXTVAL('DISCHARGE_TABLE_VALUES_ID_SEQ') AS discharge_table_values_id insert.discharge.table.value = INSERT INTO discharge_table_values (id, table_id, w, q) VALUES (:id, :table_id, :w, :q)