[wp-trac] [WordPress Trac] #31869: dbDelta doesn't allow for automatically truncated indexes

WordPress Trac noreply at wordpress.org
Sun Apr 5 10:45:01 UTC 2015


#31869: dbDelta doesn't allow for automatically truncated indexes
-----------------------------+-----------------------
 Reporter:  pento            |       Owner:  pento
     Type:  defect (bug)     |      Status:  assigned
 Priority:  normal           |   Milestone:  4.2
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------
Changes (by pento):

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:31869.diff] adds a second check for columns that have an index
 length in the DB, but not in the `CREATE TABLE` statement. It throws a
 `_doing_it_wrong()` warning for any that it finds, but doesn't try to add
 the existing index.

 @DrewAPicture - ping for a new string added in this patch. This patch (or
 something like it) needs to happen in 4.2, but I'll leave it to your
 discretion as to how/if we handle a new string after string freeze.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31869#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list