From: Moritz Bunkus Date: Thu, 2 Dec 2010 08:11:03 +0000 (+0100) Subject: Datenbankupgradescript für Unterscheidung Bankeinzug/Überweisung bei SEPA X-Git-Tag: release-2.6.2beta1~73^2~5^2~14 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ed17965728399d530135538e83c436f844ec94ff;p=kivitendo-erp.git Datenbankupgradescript für Unterscheidung Bankeinzug/Überweisung bei SEPA --- diff --git a/sql/Pg-upgrade2/sepa_in.sql b/sql/Pg-upgrade2/sepa_in.sql new file mode 100644 index 000000000..6373b8f7e --- /dev/null +++ b/sql/Pg-upgrade2/sepa_in.sql @@ -0,0 +1,12 @@ +-- @tag: sepa_in +-- @description: Erweiterung SEPA für Kontoeinzüge +-- @depends: release_2_6_1 +-- @charset: utf-8 +ALTER TABLE sepa_export ADD COLUMN vc varchar(10); +UPDATE sepa_export SET vc = 'vendor'; + +ALTER TABLE sepa_export_items ALTER COLUMN ap_id DROP NOT NULL; +ALTER TABLE sepa_export_items ADD COLUMN ar_id integer; +ALTER TABLE sepa_export_items ADD FOREIGN KEY (ar_id) REFERENCES ar (id); +ALTER TABLE sepa_export_items RENAME vendor_iban TO vc_iban; +ALTER TABLE sepa_export_items RENAME vendor_bic TO vc_bic;