Mercurial > dive4elements > river
comparison flys-aft/src/main/resources/sql/flys-common.properties @ 4090:d556e29592f5
Create new discharge tables if needed.
flys-aft/trunk@3590 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 04 Jan 2012 17:59:26 +0000 |
parents | 859b4781554a |
children | a91c7e982c32 |
comparison
equal
deleted
inserted
replaced
4089:859b4781554a | 4090:d556e29592f5 |
---|---|
2 select.gauges = SELECT id, name, official_number FROM gauges WHERE river_id = :river_id | 2 select.gauges = SELECT id, name, official_number FROM gauges WHERE river_id = :river_id |
3 next.gauge.id = SELECT NEXTVAL('GAUGES_ID_SEQ') AS gauge_id | 3 next.gauge.id = SELECT NEXTVAL('GAUGES_ID_SEQ') AS gauge_id |
4 insert.gauge = INSERT INTO gauges (id, name, river_id, station, aeo, official_number, datum) \ | 4 insert.gauge = INSERT INTO gauges (id, name, river_id, station, aeo, official_number, datum) \ |
5 VALUES(:id, :name, :river_id, :station, :aeo, :official_number, :datum) | 5 VALUES(:id, :name, :river_id, :station, :aeo, :official_number, :datum) |
6 select.timeintervals = SELECT id, start_time, stop_time FROM time_intervals | 6 select.timeintervals = SELECT id, start_time, stop_time FROM time_intervals |
7 next.timeinterval.id = SELECT NEXTVAL('TIME_INTERVALS_ID_SEQ') AS time_interval_id | |
8 insert.timeinterval = INSERT INTO time_intervals (id, start_time, stop_time) VALUES (:id, :start_time, :stop_time) | |
9 next.discharge.id = SELECT NEXTVAL('DISCHARGE_TABLES_ID_SEQ') AS discharge_table_id | |
10 insert.dischargetable = INSERT INTO discharge_tables (id, gauge_id, description, kind, time_interval_id) \ | |
11 VALUES (:id, :gauge_id, :description, 0, :time_interval_id) | |
12 |