From 6fbcd77cd2325d545d9d02097306e9c33111ca53 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 21 Sep 2010 19:39:49 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 70df4be62f7..45093244adb 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 @@ -24,7 +24,8 @@ 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 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); ALTER TABLE llx_notify_def MODIFY fk_contact integer NULL;