From 63b3010c2e33f631b8e515e8c37e60ebf8d3a8f0 Mon Sep 17 00:00:00 2001 From: Alexis Algoud Date: Sat, 10 Jun 2017 09:28:07 +0200 Subject: [PATCH] fix sql --- htdocs/install/mysql/migration/5.0.0-6.0.0.sql | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/htdocs/install/mysql/migration/5.0.0-6.0.0.sql b/htdocs/install/mysql/migration/5.0.0-6.0.0.sql index d5e758eb566..f4757e2475f 100644 --- a/htdocs/install/mysql/migration/5.0.0-6.0.0.sql +++ b/htdocs/install/mysql/migration/5.0.0-6.0.0.sql @@ -410,15 +410,16 @@ CREATE TABLE llx_blockedlog object_data text, fk_user integer, entity integer, - certified integer, - KEY signature (signature), - KEY fk_object_element (fk_object,element), - KEY entity (entity), - KEY fk_user (fk_user), - KEY entity_action (entity,action), - KEY entity_action_certified (entity,action,certified) + certified integer ) ENGINE=innodb; +ALTER TABLE llx_blockedlog ADD INDEX signature (signature); +ALTER TABLE llx_blockedlog ADD INDEX fk_object_element (fk_object,element); +ALTER TABLE llx_blockedlog ADD INDEX entity (entity); +ALTER TABLE llx_blockedlog ADD INDEX fk_user (fk_user); +ALTER TABLE llx_blockedlog ADD INDEX entity_action (entity,action); +ALTER TABLE llx_blockedlog ADD INDEX entity_action_certified (entity,action,certified); + CREATE TABLE llx_blockedlog_authority ( rowid integer AUTO_INCREMENT PRIMARY KEY, @@ -426,3 +427,5 @@ CREATE TABLE llx_blockedlog_authority signature varchar(100) NOT NULL, tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=innodb; + +ALTER TABLE llx_blockedlog_authority ADD INDEX signature (signature);