Zusätzliche Fremdschlüssel für Sprache, Kundentyp und Zahlungskonditionen bei Kunden...
authorJan Büren <jan@lx-office-hosting.de>
Thu, 6 Oct 2011 15:26:57 +0000 (17:26 +0200)
committerJan Büren <jan@lx-office-hosting.de>
Thu, 6 Oct 2011 15:26:57 +0000 (17:26 +0200)
sql/Pg-upgrade2/customer_add_constraints.sql [new file with mode: 0644]

diff --git a/sql/Pg-upgrade2/customer_add_constraints.sql b/sql/Pg-upgrade2/customer_add_constraints.sql
new file mode 100644 (file)
index 0000000..6505efd
--- /dev/null
@@ -0,0 +1,9 @@
+-- @tag: customer_add_constraints
+-- @description: Zusätzliche Fremdschlüssel für Sprache, Kundentyp und Zahlungskonditionen
+-- @depends: release_2_6_3
+-- @charset: utf-8
+-- @ignore: 0
+
+ALTER TABLE customer ADD FOREIGN KEY (payment_id) REFERENCES payment_terms (id);
+ALTER TABLE customer ADD FOREIGN KEY (language_id) REFERENCES language (id);
+ALTER TABLE customer ADD FOREIGN KEY (business_id) REFERENCES business (id);