dbDelta() Versus Manual SQL for Rollback-Safe WordPress Schema Changes
Goal Make a plugin-initiated WordPress database schema change reversible without depending on full database restoration. The change adds or drops a column in a custom table during plugin activation or an upgrade routine. Constraint dbDelta() is idempotent and compares the current table definition against the desired SQL, but WordPress Core provides no undo o