25db854fc19fe1b17c1c7420ef30f8405c025381
[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;