-Bugfix 165: Projektnummern muessen jetzt eindeutig sein.
-Nachtrag r825, Reihenfolge DB-Schemata
alter table invoice add column cusordnumber text;
--
+--
+-- add unqiue constraint to project
+ALTER TABLE project ADD constraint project_projectnumber_key UNIQUE(projectnumber);
+
update defaults set version = '2.1.2';
CREATE TABLE "project" (
"id" integer DEFAULT nextval('id'::text) PRIMARY KEY,
- "projectnumber" text,
+ "projectnumber" text UNIQUE,
"description" text,
"itime" timestamp DEFAULT now(),
"mtime" timestamp