BankTransaction: vergessene Textübersetzung bei Buchung erstellen
[kivitendo-erp.git] / sql / Pg-upgrade2 / sepa_in.sql
1 -- @tag: sepa_in
2 -- @description: Erweiterung SEPA für Kontoeinzüge
3 -- @depends: release_2_6_1
4 ALTER TABLE sepa_export ADD COLUMN vc varchar(10);
5 UPDATE sepa_export SET vc = 'vendor';
6
7 ALTER TABLE sepa_export_items ALTER COLUMN ap_id DROP NOT NULL;
8 ALTER TABLE sepa_export_items ADD COLUMN ar_id integer;
9 ALTER TABLE sepa_export_items ADD FOREIGN KEY (ar_id) REFERENCES ar (id);
10 ALTER TABLE sepa_export_items RENAME vendor_iban TO vc_iban;
11 ALTER TABLE sepa_export_items RENAME vendor_bic TO vc_bic;