diff flys-backend/doc/schema/postgresql-spatial.sql @ 5121:e4cc9aebfcf1 dami

sensible constraints for dem-table
author Tom Gottfried <tom@intevation.de>
date Wed, 27 Feb 2013 19:44:08 +0100
parents 2837b11cdb13
children 04eb62eae722
line wrap: on
line diff
--- a/flys-backend/doc/schema/postgresql-spatial.sql	Wed Feb 27 17:35:17 2013 +0100
+++ b/flys-backend/doc/schema/postgresql-spatial.sql	Wed Feb 27 19:44:08 2013 +0100
@@ -90,16 +90,16 @@
     name            VARCHAR(64),
     lower           FLOAT8,
     upper           FLOAT8,
-    year_from       VARCHAR(32) NOT NULL,
-    year_to         VARCHAR(32) NOT NULL,
-    projection      VARCHAR(32) NOT NULL,
+    year_from       VARCHAR(32),
+    year_to         VARCHAR(32),
+    projection      VARCHAR(32),
     srid	    int NOT NULL,
     elevation_state VARCHAR(32),
     format          VARCHAR(32),
     border_break    BOOLEAN NOT NULL DEFAULT FALSE,
     resolution      VARCHAR(16),
     description     VARCHAR(256),
-    path            VARCHAR(256)
+    path            VARCHAR(256) NOT NULL
 );
 ALTER TABLE dem ALTER COLUMN id SET DEFAULT NEXTVAL('DEM_ID_SEQ');
 

http://dive4elements.wald.intevation.org