epic-s6ts
[kivitendo-erp.git] / sql / Pg-upgrade2 / sepa_items_payment_type.sql
1 -- @tag: sepa_items_payment_type
2 -- @description: Zahlungsart und Skontobetrag in SEPA-Auftrag speichern
3 -- @depends: release_3_2_0
4 -- @ignore: 0
5
6 ALTER TABLE sepa_export_items ADD COLUMN payment_type TEXT;
7 UPDATE sepa_export_items SET payment_type = 'without_skonto' WHERE payment_type IS NULL;
8 ALTER TABLE sepa_export_items ALTER COLUMN payment_type SET DEFAULT 'without_skonto';
9
10 ALTER TABLE sepa_export_items ADD COLUMN skonto_amount NUMERIC(25,5);