diff flys-backend/doc/schema/postgresql-spatial.sql @ 2365:60532f75396b

Adapted 'lines' relation and made lines queryable for a given river. flys-backend/trunk@3219 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 Nov 2011 13:35:31 +0000
parents a8f408fdf58c
children 918877ee70e7
line wrap: on
line diff
--- a/flys-backend/doc/schema/postgresql-spatial.sql	Wed Nov 09 16:25:20 2011 +0000
+++ b/flys-backend/doc/schema/postgresql-spatial.sql	Thu Nov 10 13:35:31 2011 +0000
@@ -40,7 +40,7 @@
 CREATE TABLE lines (
     id       int PRIMARY KEY NOT NULL,
     river_id int REFERENCES rivers(id),
-    kind     int             NOT NULL DEFAULT 0,
+    kind     VARCHAR(16) NOT NULL,
     z        NUMERIC DEFAULT 0
 );
 SELECT AddGeometryColumn('lines', 'geom', 31466, 'LINESTRING', 4);

http://dive4elements.wald.intevation.org