Mercurial > dive4elements > river
diff flys-backend/doc/schema/postgresql.sql @ 5300:a82b621d87b0
merge
author | Bettina Gruenbauer <bettina@intevation.de> |
---|---|
date | Thu, 14 Mar 2013 14:36:32 +0100 |
parents | eaa630838705 |
children | 6dd354e7abfc |
line wrap: on
line diff
--- a/flys-backend/doc/schema/postgresql.sql Thu Mar 14 14:35:51 2013 +0100 +++ b/flys-backend/doc/schema/postgresql.sql Thu Mar 14 14:36:32 2013 +0100 @@ -36,6 +36,8 @@ b NUMERIC, UNIQUE (river_id, a, b) ); +ALTER TABLE ranges ALTER COLUMN id SET DEFAULT NEXTVAL('RANGES_ID_SEQ'); + -- Lage 'links', 'rechts', etc. CREATE SEQUENCE POSITIONS_ID_SEQ; @@ -123,6 +125,8 @@ stop_time TIMESTAMP, CHECK (start_time <= stop_time) ); +ALTER TABLE time_intervals ALTER COLUMN id SET DEFAULT NEXTVAL('TIME_INTERVALS_ID_SEQ'); + -- Stammdaten CREATE SEQUENCE MAIN_VALUES_ID_SEQ;