From 427fabc934da25a01f7588610d09a4259cf88e85 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Tue, 28 Sep 2010 06:10:55 +0000 Subject: [PATCH] Fix: bad length of field with index in utf8 --- htdocs/install/mysql/migration/2.8.0-2.9.0.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 8d99fb69045..0b4a6efe7a5 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 @@ -316,7 +316,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(130); ALTER TABLE llx_boxes_def ADD UNIQUE INDEX uk_boxes_def (file, entity, note); -- Fix bad old data -- GitLab