While changing the column 'locale' to 'language' on {locales_target} table, it went unnoticed that we dropped an existing index along with the old column in locale_update_6002(), creating none on the new column. This results in schema inconsistency: New 6.x installs have the index, upgraded from 5.x not.

Attaching a patch with new locale_update_6006() to fix this. I added a new update rather than changing locale_update_6002(), because two beta-releases happened during this bug's lifetime, so it feels better this way. People upgrading from the betas will get the index too...

CommentFileSizeAuthor
locale-index.patch721 bytesJirkaRybka

Comments

gábor hojtsy’s picture

Status: Needs review » Closed (duplicate)

Comparing the patches from here and http://drupal.org/node/128866 this is a duplicate of that issue, which also deals with the language column / index. It would be great to document what is in Drupal already from that patch and what needs to be solved still. Let's continue there and close that nasty bug. It was open for so long...