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 17a52fbd777..33177736382 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 @@ -319,7 +319,8 @@ DELETE from llx_const where name='USER_PASSWORD_GENERATED' and value='default'; ALTER TABLE llx_boxes_def DROP INDEX uk_boxes_def; -ALTER TABLE llx_boxes_def MODIFY note varchar(255); +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 ADD UNIQUE INDEX uk_boxes_def (file, entity, note); -- Fix bad old data diff --git a/htdocs/install/mysql/tables/llx_boxes_def.sql b/htdocs/install/mysql/tables/llx_boxes_def.sql index be558cd247d..dab336246d2 100644 --- a/htdocs/install/mysql/tables/llx_boxes_def.sql +++ b/htdocs/install/mysql/tables/llx_boxes_def.sql @@ -22,16 +22,8 @@ create table llx_boxes_def ( rowid integer AUTO_INCREMENT PRIMARY KEY, - file varchar(255) NOT NULL, + file varchar(200) NOT NULL, entity integer DEFAULT 1 NOT NULL, -- multi company id tms timestamp, - note varchar(255) -)type=innodb; - --- --- List of codes for the field "entity" --- --- 1 : first company boxes --- 2 : second company boxes --- 3 : etc... --- \ No newline at end of file + note varchar(140) +)type=innodb; \ No newline at end of file