Fremdschlüssel für tax_id in acc_trans
authorNiclas Zimmermann <niclas@kivitendo-premium.de>
Tue, 18 Dec 2012 10:19:04 +0000 (11:19 +0100)
committerNiclas Zimmermann <niclas@kivitendo-premium.de>
Tue, 18 Dec 2012 10:19:04 +0000 (11:19 +0100)
Dieser Commit fügt einen Fremdschlüssel für die Spalte tax_id in
der acc_trans zu der Spalte id in tax ein.

sql/Pg-upgrade2/add_fkey_tax_id_to_acc_trans.sql [new file with mode: 0644]

diff --git a/sql/Pg-upgrade2/add_fkey_tax_id_to_acc_trans.sql b/sql/Pg-upgrade2/add_fkey_tax_id_to_acc_trans.sql
new file mode 100644 (file)
index 0000000..a610011
--- /dev/null
@@ -0,0 +1,5 @@
+-- @tag: add_fkey_tax_id_to_acc_trans
+-- @description: Setzt einen Fremdschlüssel zu der Tabellenspalte tax_id in der acc_trans
+-- @depends: release_3_0_0
+
+ALTER TABLE acc_trans ADD FOREIGN KEY (tax_id) REFERENCES tax(id);