Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#32099 closed defect (bug) (fixed)

Wrong index name in 4.2 database upgrade routine

Reported by: kovshenin's profile kovshenin Owned by: pento's profile pento
Milestone: 4.2.2 Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: has-patch commit
Focuses: Cc:

Description

Seems like it's just an oversight in r31349, the signups table index is called domain_path, not domain.

Attachments (2)

32099.diff (827 bytes) - added by kovshenin 10 years ago.
32099.2.diff (1.9 KB) - added by pento 10 years ago.

Download all attachments as: .zip

Change History (9)

@kovshenin
10 years ago

#1 @pento
10 years ago

  • Keywords has-patch commit added

Huh, nice. We can commit this as soon as we're ready to start dev on 4.3, and backport it to the 4.2 branch.

#2 @nacin
10 years ago

We'll also need to drop the domain index, unless the query fails because we try to DROP an index that doesn't work. Do we need a new upgrade routine? What's the side effects of this bug?

#3 @kovshenin
10 years ago

No need to drop the domain index as it doesn't get created when the first part of the query fails. The side effect is that wp_signups doesn't get converted to utf8mb4 with a "Specified key was too long" error. From what I can see this doesn't affect updates on other tables.

@pento
10 years ago

#4 @pento
10 years ago

32099.2.diff adds an extra check on upgrade to fix any wp_signups tables with incorrect indexes.

#5 @pento
10 years ago

In 32378:

Upgrades: When converting to utf8mb4, we were trying to change the wrong index on wp_signups, causing the conversion to later fail.

Props kovshenin, pento.

See #32099.

#6 @pento
10 years ago

In 32379:

Fix an incorrect version number check in [32378].

See #32099.

#7 @pento
10 years ago

  • Owner set to pento
  • Resolution set to fixed
  • Status changed from new to closed

In 32380:

Upgrades: When converting to utf8mb4, we were trying to change the wrong index on wp_signups, causing the conversion to later fail.

Merge [32378] to the 4.2 branch.

Props kovshenin, pento.

Fixes #32099.

Note: See TracTickets for help on using tickets.