fix sql
This commit is contained in:
parent
3d5899edf3
commit
63b3010c2e
@ -410,15 +410,16 @@ CREATE TABLE llx_blockedlog
|
|||||||
object_data text,
|
object_data text,
|
||||||
fk_user integer,
|
fk_user integer,
|
||||||
entity integer,
|
entity integer,
|
||||||
certified 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)
|
|
||||||
) ENGINE=innodb;
|
) 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
|
CREATE TABLE llx_blockedlog_authority
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
@ -426,3 +427,5 @@ CREATE TABLE llx_blockedlog_authority
|
|||||||
signature varchar(100) NOT NULL,
|
signature varchar(100) NOT NULL,
|
||||||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||||
) ENGINE=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
|
ALTER TABLE llx_blockedlog_authority ADD INDEX signature (signature);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user