diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-08 12:40:41 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-08 12:40:41 +0000 |
commit | a051dd5aab7465facd938a5afc81cdb420890f15 (patch) | |
tree | b0e59e97ba794ec3d61bed8ab62990781ae26322 /engine | |
parent | 91bf736f9726f9611656332b4ba57b576a985666 (diff) | |
download | elgg-a051dd5aab7465facd938a5afc81cdb420890f15.tar.gz elgg-a051dd5aab7465facd938a5afc81cdb420890f15.tar.bz2 |
Closes #666: Added some extra indexes
git-svn-id: https://code.elgg.org/elgg/trunk@2543 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/schema/mysql.sql | 2 | ||||
-rw-r--r-- | engine/schema/upgrades/2009010801.sql | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql index 9a6efd683..521cda27f 100644 --- a/engine/schema/mysql.sql +++ b/engine/schema/mysql.sql @@ -152,6 +152,8 @@ CREATE TABLE `prefix_users_entity` ( KEY `password` (`password`),
KEY `email` (`email`(50)),
KEY `code` (`code`),
+ KEY `last_action` (`last_action`),
+ KEY `last_login` (`last_login`),
FULLTEXT KEY `name` (`name`), FULLTEXT KEY (`name`,`username`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
diff --git a/engine/schema/upgrades/2009010801.sql b/engine/schema/upgrades/2009010801.sql new file mode 100644 index 000000000..1e7c020e8 --- /dev/null +++ b/engine/schema/upgrades/2009010801.sql @@ -0,0 +1,5 @@ +ALTER TABLE `prefix_users_entity` DROP KEY `last_action`; +ALTER TABLE `prefix_users_entity` ADD KEY `last_action` (`last_action`); + +ALTER TABLE `prefix_users_entity` DROP KEY `last_login`; +ALTER TABLE `prefix_users_entity` ADD KEY `last_login` (`last_login`);
\ No newline at end of file |