# HG changeset patch # User Tom Gottfried # 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) );