X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/sql/Pg-upgrade2/assembly_parts_foreign_key.sql

diff --git a/sql/Pg-upgrade2/assembly_parts_foreign_key.sql b/sql/Pg-upgrade2/assembly_parts_foreign_key.sql
new file mode 100644
index 000000000..8b3d4b260
--- /dev/null
+++ b/sql/Pg-upgrade2/assembly_parts_foreign_key.sql
@@ -0,0 +1,7 @@
+-- @tag: assembly_parts_foreign_key
+-- @description: Erzeugniselement (assembly) erhÃ¤lt FremdschlÃ¼ssel auf parts + NOT NULL
+-- @depends: release_3_4_1
+-- @ignore: 0
+
+ALTER TABLE assembly ADD FOREIGN KEY (parts_id) REFERENCES parts(id);
+ALTER TABLE assembly ALTER COLUMN parts_id SET NOT NULL;
