From 52c3245e8f55e4ae6fa5347712e5f22e35da2d1a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 24 Sep 2010 11:15:24 +0000 Subject: [PATCH] Fix: Do not increase this as file+note must be small to allow index --- htdocs/install/mysql/migration/2.9.0-3.0.0.sql | 2 +- htdocs/install/mysql/tables/llx_boxes_def.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/install/mysql/migration/2.9.0-3.0.0.sql b/htdocs/install/mysql/migration/2.9.0-3.0.0.sql index 7359fde68dc..645d788ba06 100644 --- a/htdocs/install/mysql/migration/2.9.0-3.0.0.sql +++ b/htdocs/install/mysql/migration/2.9.0-3.0.0.sql @@ -25,7 +25,7 @@ alter table llx_product_price change column envente tosell tinyint DEFAULT 1; ALTER TABLE llx_boxes_def DROP INDEX uk_boxes_def; ALTER TABLE llx_boxes_def MODIFY file varchar(200) NOT NULL; -ALTER TABLE llx_boxes_def MODIFY note varchar(140); +ALTER TABLE llx_boxes_def MODIFY note varchar(130); ALTER TABLE llx_boxes_def ADD UNIQUE INDEX uk_boxes_def (file, entity, note); ALTER TABLE llx_notify_def MODIFY fk_contact integer NULL; diff --git a/htdocs/install/mysql/tables/llx_boxes_def.sql b/htdocs/install/mysql/tables/llx_boxes_def.sql index c97a4fffe25..c3fd77ac075 100644 --- a/htdocs/install/mysql/tables/llx_boxes_def.sql +++ b/htdocs/install/mysql/tables/llx_boxes_def.sql @@ -26,5 +26,5 @@ create table llx_boxes_def file varchar(200) NOT NULL, -- Do not increase this as file+note must be small to allow index entity integer DEFAULT 1 NOT NULL, -- multi company id tms timestamp, - note varchar(140) -- Do not increase this as file+note must be small to allow index + note varchar(130) -- Do not increase this as file+note must be small to allow index )type=innodb;