From 13ea97cb8759f2843d9137690c58d3600387fc9a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 2 May 2010 15:03:32 +0000 Subject: [PATCH] Works on product canvas and templates !! WARNING : not stable !! --- htdocs/install/mysql/migration/2.8.0-2.9.0.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/install/mysql/migration/2.8.0-2.9.0.sql b/htdocs/install/mysql/migration/2.8.0-2.9.0.sql index 42c0cf8b979..5ae420a9f81 100755 --- a/htdocs/install/mysql/migration/2.8.0-2.9.0.sql +++ b/htdocs/install/mysql/migration/2.8.0-2.9.0.sql @@ -213,3 +213,6 @@ ALTER TABLE llx_categorie_member ADD INDEX idx_categorie_member_fk_member (fk_me ALTER TABLE llx_categorie_member ADD CONSTRAINT fk_categorie_member_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); ALTER TABLE llx_categorie_member ADD CONSTRAINT fk_categorie_member_member_rowid FOREIGN KEY (fk_member) REFERENCES llx_adherent (rowid); + +UPDATE llx_product SET canvas = 'default' WHERE fk_product_type = 0 AND canvas = ''; +UPDATE llx_product SET canvas = 'service' WHERE fk_product_type = 1 AND canvas = '';