Opened 3 years ago
Last modified 2 years ago
#14445 new defect (bug)
dbdelta do not handel FULLTEXT KEY correctly and generate MySQL errors
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Database | Version: | 3.0 |
| Severity: | minor | Keywords: | has-patch tested |
| Cc: |
Description
When using dbdelta during the update of a plugin that a Fulltext index use, dbdelta generate a MYSQL error due to duplicate index.
This is due to the array_search return always false.
I attached a posible solution to address this issue. I added a key named 'index_type' to the $index_ary. This way, when 'index_type' == fulltext, I add to $index_string "FULLTEXT".
Attachments (2)
Change History (3)
Note: See
TracTickets for help on using
tickets.

Proposed patch for wp-admin/includes/upgrade.php