From: Niclas Zimmermann Date: Tue, 18 Dec 2012 10:19:04 +0000 (+0100) Subject: Fremdschlüssel für tax_id in acc_trans X-Git-Tag: release-3.1.0beta1~775 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a4fce26ecdececd74cf1c63de7dcc959083d7e6c;p=kivitendo-erp.git Fremdschlüssel für tax_id in acc_trans Dieser Commit fügt einen Fremdschlüssel für die Spalte tax_id in der acc_trans zu der Spalte id in tax ein. --- 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 index 000000000..a61001129 --- /dev/null +++ b/sql/Pg-upgrade2/add_fkey_tax_id_to_acc_trans.sql @@ -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);