"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,
"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
"paid" numeric (15,5),
"datepaid" date,
"duedate" date,
+ "deliverydate" date,
"invoice" boolean DEFAULT 'f',
"shippingpoint" text,
"terms" smallint DEFAULT 0,
"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,
CREATE TABLE "project" (
"id" integer DEFAULT nextval('id'::text) PRIMARY KEY,
- "projectnumber" text,
+ "projectnumber" text UNIQUE,
"description" text,
"itime" timestamp DEFAULT now(),
"mtime" timestamp
"mtime" timestamp
);
+
CREATE TABLE "sic" (
"code" text,
"sictype" character(1),