From 351ce6228d89466545e3c693cf9a52f03cd51253 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Feb 2016 04:49:02 +0100 Subject: [PATCH] NEW Add width and height on product card --- htdocs/install/mysql/migration/3.9.0-4.0.0.sql | 6 ++++++ htdocs/install/mysql/tables/llx_product.sql | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql index 25eee0dcbc0..7cd50efc72d 100644 --- a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql +++ b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql @@ -36,6 +36,12 @@ ALTER TABLE llx_product_customer_price_log ADD COLUMN localtax2_type varchar(10) ALTER TABLE llx_product ADD COLUMN model_pdf varchar(255) default ''; +ALTER TABLE llx_product ADD COLUMN width float DEFAULT NULL; +ALTER TABLE llx_product ADD COLUMN width_units tinyint DEFAULT NULL; +ALTER TABLE llx_product ADD COLUMN height float DEFAULT NULL; +ALTER TABLE llx_product ADD COLUMN height_units tinyint DEFAULT NULL; + + CREATE TABLE llx_categorie_user ( fk_categorie integer NOT NULL, diff --git a/htdocs/install/mysql/tables/llx_product.sql b/htdocs/install/mysql/tables/llx_product.sql index e2ed0a49627..78620495f61 100755 --- a/htdocs/install/mysql/tables/llx_product.sql +++ b/htdocs/install/mysql/tables/llx_product.sql @@ -69,6 +69,10 @@ create table llx_product weight_units tinyint DEFAULT NULL, length float DEFAULT NULL, length_units tinyint DEFAULT NULL, + width float DEFAULT NULL, + width_units tinyint DEFAULT NULL, + height float DEFAULT NULL, + height_units tinyint DEFAULT NULL, surface float DEFAULT NULL, surface_units tinyint DEFAULT NULL, volume float DEFAULT NULL,