Make WordPress Core

Opened 6 years ago

#46576 new enhancement

short-circuit filter for dbDelta

Reported by: m_uysl's profile m_uysl Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Database Keywords:
Focuses: Cc:

Description

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.)

Attachments (1)

46576.patch (1.1 KB) - added by m_uysl 6 years ago.

Download all attachments as: .zip

Change History (1)

@m_uysl
6 years ago

Note: See TracTickets for help on using tickets.