2008110301.sql 808 B

123456789101112131415161718
  1. -- Based on slow query table feedback
  2. ALTER TABLE `prefix_entity_relationships` DROP KEY `relationship`;
  3. ALTER TABLE `prefix_entity_relationships` ADD KEY `relationship` (`relationship`);
  4. ALTER TABLE `prefix_entity_relationships` DROP KEY `guid_two`;
  5. ALTER TABLE `prefix_entity_relationships` ADD KEY `guid_two` (`guid_two`);
  6. -- The following seemed to have been missed off upgrade
  7. ALTER TABLE `prefix_users_entity` DROP KEY `code`;
  8. ALTER TABLE `prefix_users_entity` ADD KEY `code` (`code`);
  9. -- Access collections missing keys
  10. ALTER TABLE `prefix_access_collections` DROP KEY `site_guid`;
  11. ALTER TABLE `prefix_access_collections` ADD KEY `site_guid` (`site_guid`);
  12. ALTER TABLE `prefix_access_collections` DROP KEY `owner_guid`;
  13. ALTER TABLE `prefix_access_collections` ADD KEY `owner_guid` (`owner_guid`);