[wp-trac] [WordPress Trac] #46576: short-circuit filter for dbDelta

WordPress Trac noreply at wordpress.org
Wed Mar 20 15:32:29 UTC 2019


#46576: short-circuit filter for dbDelta
-------------------------+-----------------------------
 Reporter:  m_uysl       |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Database     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 `dbDelta` function can cause strange things on the large-scale WordPress
 installations. When you have large amounts of data, you don't really want
 to schema changes apply directly on the production. (at least we don't do
 that)

 So, I recommend adding new short-circuit filter to avoid that.

 (I know, returning an empty array with `dbdelta_queries` might be a
 workaround but not ideal for this job.)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46576>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list