X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sql%2Flx-office.sql;h=b4f956bbc1b574abc703efcfdad910045e83f269;hb=80ec19fe41dfa899593655963628334ab656ae54;hp=240803396ca033465638eeda868ead1eebc7e720;hpb=041a8bb77df72193d039f511707a58eef62e31c3;p=kivitendo-erp.git diff --git a/sql/lx-office.sql b/sql/lx-office.sql index 240803396..b4f956bbc 100644 --- a/sql/lx-office.sql +++ b/sql/lx-office.sql @@ -112,10 +112,11 @@ CREATE TABLE "defaults" ( "audittrail" bool default 'f', "articlenumber" text, "servicenumber" text, + "coa" text, "itime" timestamp DEFAULT now(), "mtime" timestamp ); -INSERT INTO defaults (version,audittrail) VALUES ('2.1.2', 't'); +INSERT INTO defaults (version,audittrail) VALUES ('2.2.0', 't'); CREATE TABLE audittrail ( "trans_id" int, @@ -243,7 +244,7 @@ CREATE TABLE "customer" ( "obsolete" boolean DEFAULT 'f', "ustid" varchar(12), "username" varchar(50), - "user_password" varchar(12), + "user_password" text, "salesman_id" integer, "c_vendor_id" text, "klass" integer DEFAULT 0 @@ -285,6 +286,7 @@ CREATE TABLE "ar" ( "paid" numeric (15,5), "datepaid" date, "duedate" date, + "deliverydate" date, "invoice" boolean DEFAULT 'f', "shippingpoint" text, "terms" smallint DEFAULT 0, @@ -397,7 +399,7 @@ CREATE TABLE "orderitems" ( "reqdate" date, "ship" real, "serialnumber" text, - "id" integer DEFAULT nextval('orderitemsid'::text) PRIMARY KEY, + "id" integer DEFAULT nextval('orderitemsid'::text), "itime" timestamp DEFAULT now(), "mtime" timestamp, "pricegroup_id" integer, @@ -453,7 +455,7 @@ CREATE TABLE "shipto" ( CREATE TABLE "project" ( "id" integer DEFAULT nextval('id'::text) PRIMARY KEY, - "projectnumber" text, + "projectnumber" text UNIQUE, "description" text, "itime" timestamp DEFAULT now(), "mtime" timestamp @@ -533,6 +535,7 @@ CREATE TABLE "business" ( "mtime" timestamp ); + CREATE TABLE "sic" ( "code" text, "sictype" character(1),