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 7359fde68dc2584970b16707ad9c5fde17ce05a9..645d788ba06cf45be83dbf8cfda62bc7a5af1243 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 c97a4fffe25b40878bb7478b443c39a2fac10492..c3fd77ac0752d39821cb44c284272c7a2fde560b 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;