Add indexes to db_acl.sql in skel directory.

Copy changes in app/Config/Schema into the skel directory.

Refs #4052
This commit is contained in:
mark_story 2014-07-21 21:31:05 -04:00
parent b129ce512e
commit 9b8e6403fd

View file

@ -38,4 +38,16 @@ CREATE TABLE aros (
lft INTEGER(10) DEFAULT NULL,
rght INTEGER(10) DEFAULT NULL,
PRIMARY KEY (id)
);
);
/* this indexes will improve acl perfomance */
CREATE INDEX idx_acos_lft_rght ON `acos` (`lft`, `rght`);
CREATE INDEX idx_acos_alias ON `acos` (`alias`);
h
CREATE INDEX idx_aros_lft_rght ON `aros` (`lft`, `rght`);
CREATE INDEX idx_aros_alias ON `aros` (`alias`);
CREATE INDEX idx_aco_id ON `aros_acos` (`aco_id`);