From: Moritz Bunkus Date: Mon, 18 May 2009 14:31:37 +0000 (+0000) Subject: Beim Anlegen von Tabellen, die OIDs brauchen, explizit "WITH OIDS" mitgeben. X-Git-Tag: release-2.6.0rc1~37 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0f6e82efb2365d305e32d9ce5756133313b93303;p=kivitendo-erp.git Beim Anlegen von Tabellen, die OIDs brauchen, explizit "WITH OIDS" mitgeben. Grund: PostgreSQL ab Version 8 legt OIDs normalerweise nicht automatisch mit an, es sei denn, es ist in der Clusterkonfiguration explizit wieder aktiviert worden. Fix für Bug 941. --- diff --git a/sql/Pg-upgrade2/delivery_orders.sql b/sql/Pg-upgrade2/delivery_orders.sql index 83a47e1f8..ba68b2fb6 100644 --- a/sql/Pg-upgrade2/delivery_orders.sql +++ b/sql/Pg-upgrade2/delivery_orders.sql @@ -75,7 +75,7 @@ CREATE TABLE delivery_order_items ( FOREIGN KEY (parts_id) REFERENCES parts (id), FOREIGN KEY (project_id) REFERENCES project (id), FOREIGN KEY (price_factor_id) REFERENCES price_factors (id) -); +) WITH OIDS; CREATE TRIGGER mtime_delivery_order_items_id BEFORE UPDATE ON delivery_order_items FOR EACH ROW EXECUTE PROCEDURE set_mtime(); diff --git a/sql/lx-office.sql b/sql/lx-office.sql index e57a683ba..12819196c 100644 --- a/sql/lx-office.sql +++ b/sql/lx-office.sql @@ -142,7 +142,7 @@ CREATE TABLE parts ( not_discountable boolean DEFAULT false, buchungsgruppen_id integer, payment_id integer -); +) WITH OIDS; -- @@ -216,7 +216,7 @@ CREATE TABLE acc_trans ( taxkey integer, itime timestamp without time zone DEFAULT now(), mtime timestamp without time zone -); +) WITH OIDS; -- @@ -248,7 +248,7 @@ CREATE TABLE invoice ( base_qty real, subtotal boolean DEFAULT false, longdescription text -); +) WITH OIDS; -- @@ -395,7 +395,7 @@ CREATE TABLE assembly ( bom boolean, itime timestamp without time zone DEFAULT now(), mtime timestamp without time zone -); +) WITH OIDS; -- @@ -602,7 +602,7 @@ CREATE TABLE orderitems ( base_qty real, subtotal boolean DEFAULT false, longdescription text -); +) WITH OIDS; -- @@ -694,7 +694,7 @@ CREATE TABLE partsgroup ( partsgroup text, itime timestamp without time zone DEFAULT now(), mtime timestamp without time zone -); +) WITH OIDS; --