Mercurial > dive4elements > river
comparison backend/doc/schema/postgresql-spatial.sql @ 7001:dcc7a6c8b92c double-precision
Minor schema change: allow to delete ranges with associated DEMs.
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Fri, 30 Aug 2013 17:31:20 +0200 |
parents | 6a63456b99d9 |
children | f4e32ac4e55c |
comparison
equal
deleted
inserted
replaced
6935:a442cab85198 | 7001:dcc7a6c8b92c |
---|---|
121 CREATE SEQUENCE DEM_ID_SEQ; | 121 CREATE SEQUENCE DEM_ID_SEQ; |
122 CREATE TABLE dem ( | 122 CREATE TABLE dem ( |
123 id int PRIMARY KEY NOT NULL, | 123 id int PRIMARY KEY NOT NULL, |
124 river_id int REFERENCES rivers(id) ON DELETE CASCADE, | 124 river_id int REFERENCES rivers(id) ON DELETE CASCADE, |
125 name VARCHAR(64), | 125 name VARCHAR(64), |
126 range_id INT REFERENCES ranges(id), | 126 range_id INT REFERENCES ranges(id) ON DELETE CASCADE, |
127 time_interval_id INT REFERENCES time_intervals(id), | 127 time_interval_id INT REFERENCES time_intervals(id), |
128 projection VARCHAR(32), | 128 projection VARCHAR(32), |
129 srid int NOT NULL, | 129 srid int NOT NULL, |
130 elevation_state VARCHAR(32), | 130 elevation_state VARCHAR(32), |
131 format VARCHAR(32), | 131 format VARCHAR(32), |