X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sql%2FPg-upgrade2%2Fperiodic_invoices.sql;h=fcbb3e8a09a45604776389bf4a06e4a60b7eaab0;hb=d21bdcaf73d55909d130fbbe26137fd45114adde;hp=43c3b27cd58d2f4d26f5578fb956b55f8c606847;hpb=250fa402a8394de574f8ede1ce2345cef7f8b31b;p=kivitendo-erp.git diff --git a/sql/Pg-upgrade2/periodic_invoices.sql b/sql/Pg-upgrade2/periodic_invoices.sql index 43c3b27cd..fcbb3e8a0 100644 --- a/sql/Pg-upgrade2/periodic_invoices.sql +++ b/sql/Pg-upgrade2/periodic_invoices.sql @@ -1,16 +1,19 @@ -- @tag: periodic_invoices --- @description: Neue Tabellen und Spalten für Wiederkehrende Rechnungen +-- @description: Neue Tabellen und Spalten für Wiederkehrende Rechnungen -- @depends: release_2_6_1 CREATE TABLE periodic_invoices_configs ( - id integer NOT NULL DEFAULT nextval('id'), - oe_id integer NOT NULL, - periodicity varchar(10) NOT NULL, - print boolean DEFAULT 'f', - printer_id integer, - copies integer, - active boolean DEFAULT 't', - start_date date, - ar_chart_id integer NOT NULL, + id integer NOT NULL DEFAULT nextval('id'), + oe_id integer NOT NULL, + periodicity varchar(10) NOT NULL, + print boolean DEFAULT 'f', + printer_id integer, + copies integer, + active boolean DEFAULT 't', + terminated boolean DEFAULT 'f', + start_date date, + end_date date, + ar_chart_id integer NOT NULL, + extend_automatically_by integer, PRIMARY KEY (id), FOREIGN KEY (oe_id) REFERENCES oe (id), @@ -19,11 +22,11 @@ CREATE TABLE periodic_invoices_configs ( ); CREATE TABLE periodic_invoices ( - id integer NOT NULL DEFAULT nextval('id'), - config_id integer NOT NULL, - ar_id integer NOT NULL, - period_start_date date NOT NULL, - itime timestamp DEFAULT now(), + id integer NOT NULL DEFAULT nextval('id'), + config_id integer NOT NULL, + ar_id integer NOT NULL, + period_start_date date NOT NULL, + itime timestamp DEFAULT now(), PRIMARY KEY (id), FOREIGN KEY (config_id) REFERENCES periodic_invoices_configs (id),