[Lada-commits] [PATCH 1 of 2] Add missing FK constraint

Wald Commits scm-commit at wald.intevation.org
Mon Dec 5 12:44:54 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1480936810 -3600
# Node ID 9dda1237c756a8247cac53764b4c2f22d6284674
# Parent  6692b3bdc49d9e669914dfef3a28b0b5658cd844
Add missing FK constraint.

diff -r 6692b3bdc49d -r 9dda1237c756 db_schema/stammdaten_schema.sql
--- a/db_schema/stammdaten_schema.sql	Fri Dec 02 20:22:56 2016 +0100
+++ b/db_schema/stammdaten_schema.sql	Mon Dec 05 12:20:10 2016 +0100
@@ -166,7 +166,7 @@
 
 CREATE TABLE verwaltungsgrenze (
     id serial PRIMARY KEY,
-    gem_id character varying(8) NOT NULL,
+    gem_id character varying(8) NOT NULL REFERENCES verwaltungseinheit,
     shape public.geometry(MultiPolygon, 4326)
 );
 


More information about the Lada-commits mailing list