I upgraded to 6-2.1 and I encountered failed queries for languages which include a dash. Those which failed:

# Failed: ALTER TABLE {translation_overview_priority} CHANGE zh-hant `lang_zhhant` TINYINT unsigned NOT NULL DEFAULT 1
# Failed: ALTER TABLE {translation_overview_priority} CHANGE pt-br `lang_ptbr` TINYINT unsigned NOT NULL DEFAULT 1
# Failed: ALTER TABLE {translation_overview_priority} CHANGE pt-pt `lang_ptpt` TINYINT unsigned NOT NULL DEFAULT 1

The correct queries should be:

ALTER TABLE {translation_overview_priority} CHANGE zhhant `lang_zhhant` TINYINT unsigned NOT NULL DEFAULT 1
ALTER TABLE {translation_overview_priority} CHANGE ptbr `lang_ptbr` TINYINT unsigned NOT NULL DEFAULT 1
ALTER TABLE {translation_overview_priority} CHANGE ptpt `lang_ptpt` TINYINT unsigned NOT NULL DEFAULT 1
CommentFileSizeAuthor
#1 translation_overview_471464.patch893 bytesdrewish

Comments

drewish’s picture

Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new893 bytes

Darn, wish I could have caught that while it was still in beta. Here's a patch to rename the correct columns. Could you apply this and then re-run update 6001?

drewish’s picture

Oh, it shouldn't cause any problems but to be safe, make a backup of your database before re-running the database.

toemaz’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the quick update drewish. I applied the patch and reran the update. Flawless.

drewish’s picture

Status: Reviewed & tested by the community » Fixed

great, well thank you for the clear bug report and quick testing. i'm going to roll a 2.2 release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.