Skip to content

Commit

Permalink
[BUGFIX] Remove duplicate database indices
Browse files Browse the repository at this point in the history
Percona toolkit found some duplicate
indices in some ext_tables.sql.
Remove or update the mentioned indices.

Resolves: #82671
Releases: master,8.7
Change-Id: Icdb60e2ee9f16cad097c0371e258e2c176c3b50c
Reviewed-on: https://review.typo3.org/56856
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Alessandro <alessandro.filira@pallino.it>
Tested-by: Alessandro <alessandro.filira@pallino.it>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-on: https://review.typo3.org/56911
  • Loading branch information
froemken authored and lolli42 committed May 10, 2018
1 parent 704bf84 commit d4c9ae7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions typo3/sysext/core/ext_tables.sql
Expand Up @@ -617,7 +617,7 @@ CREATE TABLE sys_log (
PRIMARY KEY (uid),
KEY parent (pid),
KEY event (userid,event_pid),
KEY recuidIdx (recuid,uid),
KEY recuidIdx (recuid),
KEY user_auth (type,action,tstamp),
KEY request (request_id),
KEY combined_1 (tstamp, type, userid)
Expand Down Expand Up @@ -676,7 +676,6 @@ CREATE TABLE sys_category (
items int(11) DEFAULT '0' NOT NULL,

PRIMARY KEY (uid),
KEY parent (pid),
KEY t3ver_oid (t3ver_oid,t3ver_wsid),
KEY category_parent (parent),
KEY category_list (pid,deleted,sys_language_uid)
Expand Down
1 change: 0 additions & 1 deletion typo3/sysext/frontend/ext_tables.sql
Expand Up @@ -168,7 +168,6 @@ CREATE TABLE sys_domain (
forced tinyint(3) unsigned DEFAULT '0' NOT NULL,

PRIMARY KEY (uid),
KEY parent (pid),
KEY getSysDomain (redirectTo,hidden),
KEY getDomainStartPage (pid,hidden,domainName)
);
Expand Down
4 changes: 2 additions & 2 deletions typo3/sysext/indexed_search/ext_tables.sql
Expand Up @@ -65,8 +65,8 @@ CREATE TABLE index_words (
metaphone int(11) DEFAULT '0' NOT NULL,
is_stopword tinyint(3) DEFAULT '0' NOT NULL,
PRIMARY KEY (wid),
KEY baseword (baseword,wid),
KEY metaphone (metaphone,wid)
KEY baseword (baseword),
KEY metaphone (metaphone)
) ENGINE=InnoDB;

#
Expand Down

0 comments on commit d4c9ae7

Please sign in to comment.