[wp-trac] [WordPress Trac] #22884: What if I delete wp_posts table from database.
WordPress Trac
noreply at wordpress.org
Wed Jan 21 13:49:18 UTC 2015
#22884: What if I delete wp_posts table from database.
-------------------------------------+------------------------------
Reporter: mukkundthanki | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 3.5
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses:
-------------------------------------+------------------------------
Changes (by jipmoors):
* keywords: needs-patch => needs-testing has-patch
Comment:
I have added a function to handle specific errors from the SQL server.
Implemented a check for the Error: 1146 SQLSTATE: 42S02 (ER_NO_SUCH_TABLE)
error.
If the table does not exist, it will check if any WP tables are missing
and if so running dbDelta to recreate them.
The part that I don't 100% like is the include of the upgrade.php and
dbDelta calls.
Open for ideas/suggestions/fixes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22884#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list