[wp-trac] [WordPress Trac] #42381: Wordpress update does not check if database structure/scheme on existing site is equal to how it would be on a new install
WordPress Trac
noreply at wordpress.org
Mon Jun 30 16:12:43 UTC 2025
#42381: Wordpress update does not check if database structure/scheme on existing
site is equal to how it would be on a new install
--------------------------+------------------------------
Reporter: mike_vl | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 4.8.2
Severity: normal | Resolution: wontfix
Keywords: dev-feedback | Focuses:
--------------------------+------------------------------
Changes (by callumbw95):
* status: new => closed
* resolution: => wontfix
Comment:
Hi @mike_vl,
As this ticket has been sitting for a while, I have done some research
into this to see what the conclusion is here. From what I understand from
your description, and the further discussion on the ticket, you have
highlighted an edge case where `dbDelta()` did not automatically repair an
outdated database schema.
The `dbDelta()` function is intentionally conservative to ensure stability
and prevent accidental data loss during updates across the wide variety of
WordPress installations. This core design principle remains unchanged, as
more aggressive schema repairs carry significant risks.
Given the age of this ticket and since this behaviour is not something
that is planned to change, I am closing this ticket as `wontfix`. Of
course if you have any further comments regarding this issue, please feel
free to reopen the ticket. 😃
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42381#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list