2 -- @description: Erweiterung SEPA für Kontoeinzüge
3 -- @depends: release_2_6_1
5 ALTER TABLE sepa_export ADD COLUMN vc varchar(10);
6 UPDATE sepa_export SET vc = 'vendor';
8 ALTER TABLE sepa_export_items ALTER COLUMN ap_id DROP NOT NULL;
9 ALTER TABLE sepa_export_items ADD COLUMN ar_id integer;
10 ALTER TABLE sepa_export_items ADD FOREIGN KEY (ar_id) REFERENCES ar (id);
11 ALTER TABLE sepa_export_items RENAME vendor_iban TO vc_iban;
12 ALTER TABLE sepa_export_items RENAME vendor_bic TO vc_bic;