#109801[TASK] Adjust creation of indexes on junction tables
Description
- Remove redundant index on `uid_local`, as it is already covered by the composite primary key (`uid_local`, `uid_foreign`) or (`uid_local`, `uid_foreign`, `tablenames`, `fieldname`) if `tablenames` and `fieldname` are provided. A reverse lookup index on `uid_foreign` is sufficient, since it already includes the primary key columns.
- Add a unique index on (`uid_local`, `uid_foreign`) and include `tablenames` and `fieldname` columns if they are provided for the case when a primary key `uid` is needed. A reverse lookup composite index on (`uid_foreign`, `uid_local`) is created in this case.
This issue was automatically created from https://github.com/TYPO3/typo3/pull/639
Reviews 1
History 34
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 94035 status
NewUnder Review <span data-processor="relativetime" data-value="2026-05-08T09:49:41+00:00" > 05/08/26, 09:49 </span> -
Garvin Hicking commented and changed status
Under ReviewClosed <span data-processor="relativetime" data-value="2026-05-08T10:20:06+00:00" > 05/08/26, 10:20 </span> -
Garvin Hicking changed Duplicates #109803 <span data-processor="relativetime" data-value="2026-05-08T10:20:32+00:00" > 05/08/26, 10:20 </span>
-
Garvin Hicking changed Duplicates #109802 <span data-processor="relativetime" data-value="2026-05-08T10:20:42+00:00" > 05/08/26, 10:20 </span>
Dupe of https://forge.typo3.org/issues/109803