[wp-trac] [WordPress Trac] #26801: Ability to drop table columns using dbDelta()

WordPress Trac noreply at wordpress.org
Thu Jan 30 09:57:50 UTC 2014


#26801: Ability to drop table columns using dbDelta()
-------------------------+----------------------
 Reporter:  toszcze      |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Database     |     Version:  trunk
 Severity:  normal       |  Resolution:  wontfix
 Keywords:  has-patch    |     Focuses:
-------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 My point was that dbDelta() is extremely finicky. It requires exacting
 whitespace, among other things, in order to work. When it breaks and
 doesn't create a new table, or a new index, or a new field, well, that's
 not the end of the world. If it breaks and suddenly starts dropping
 columns because it didn't notice them in the CREATE TABLE, that's very,
 very bad.

 As long as dbDelta() is in the shape it's in, I'm not OK with giving it
 the ability to destroy data in the process.

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


More information about the wp-trac mailing list