From: Philip Reetz
Date: Thu, 17 Nov 2005 09:47:08 +0000 (+0000)
Subject: Spalten die Primarykey werden sollen vorher auf not null setzen
X-Git-Tag: release-2.4.0^2~453
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9cac71b24fa54a6d7bb5b090427452b70cf1da82;p=kivitendo-erp.git
Spalten die Primarykey werden sollen vorher auf not null setzen
---
diff --git a/sql/Pg-upgrade-2.1.1-2.1.2.sql b/sql/Pg-upgrade-2.1.1-2.1.2.sql
index 6cfb12be7..534a25580 100644
--- a/sql/Pg-upgrade-2.1.1-2.1.2.sql
+++ b/sql/Pg-upgrade-2.1.1-2.1.2.sql
@@ -152,6 +152,22 @@ alter table ar alter invnumber set NOT NULL;
alter table ap alter invnumber set NOT NULL;
alter table oe alter ordnumber set NOT NULL;
+alter table gl alter id set NOT NULL;
+alter table chart alter id set NOT NULL;
+alter table parts alter id set NOT NULL;
+alter table invoice alter id set NOT NULL;
+alter table vendor alter id set NOT NULL;
+alter table customer alter id set NOT NULL;
+alter table contacts alter cp_id set NOT NULL;
+alter table ar alter id set NOT NULL;
+alter table ap alter id set NOT NULL;
+alter table oe alter id set NOT NULL;
+alter table employee alter id set NOT NULL;
+alter table warehouse alter id set NOT NULL;
+alter table business alter id set NOT NULL;
+alter table license alter id set NOT NULL;
+alter table orderitems alter id set NOT NULL;
+
alter table gl add primary key (id);
alter table chart add primary key (id);
alter table parts add primary key (id);