Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / sql / Pg-upgrade2 / sales_quotation_order_probability_expected_billing_date.sql
1 -- @tag: sales_quotation_order_probability_expected_billing_date
2 -- @description: Weitere Felder im Angebot: Angebotswahrscheinlichkeit, voraussichtliches Abrechnungsdatum
3 ALTER TABLE oe
4   ADD COLUMN order_probability     INTEGER,
5   ADD COLUMN expected_billing_date DATE;
6
7 UPDATE oe SET order_probability = 0;
8
9 ALTER TABLE oe
10   ALTER COLUMN order_probability SET DEFAULT 0,
11   ALTER COLUMN order_probability SET NOT NULL;