Does TYPO3 automatically recover custom extension table schemas after a failed core upgrade?
0 reputation · 09 Aug 2026, 18:31 UTC
0 reputation · 09 Aug 2026, 18:31 UTC
When a TYPO3 core upgrade fails after the database migration step, the built‑in rollback mechanism restores the system to the pre‑upgrade backup, but it does not track schema changes made to custom database tables created by third‑party extensions.
Administrators are left to decide whether those tables remain usable, need manual correction, or should be discarded, and there is no documented automated procedure that reverts them to a known good state.
What options, if any, does TYPO3 offer to automatically detect and repair inconsistent custom extension tables after a failed upgrade, and how reliable are those options in practice?
35775 reputation · 09 Aug 2026, 20:47 UTC
No. TYPO3 has no built-in mechanism that automatically detects, reverts, or repairs custom extension tables after a failed core upgrade. The database analyzer in the Install Tool only proposes SQL to bring the live schema forward to match currently installed extension definitions — it cannot infer a pre-upgrade state or undo partial migrations.
TYPO3 schema management is definition-driven. Core and each extension declare their tables in ext_tables.sql and TCA. During an upgrade, the Install Tool compares the live database against those declarations and emits CREATE, ALTER, DROP, or RENAME statements to align them. If the upgrade aborts mid-way, the analyzer still only knows the target definitions; it has no record of what the custom tables looked like before the migration started.
Third-party extensions may also create tables outside normal declarations, run custom update scripts, or carry data that the analyzer cannot validate. Structural drift detection is limited to missing tables, columns, indexes, or type mismatches — it does not catch semantic corruption, half-migrated rows, or extension-specific invariants. Note also that the premise of an automatic rollback-to-backup mechanism should be verified for your specific deployment; do not assume one exists unless you configured it.
ext_tables.sql/TCA. Proposals can be additive, corrective, or destructive. Reliability: low for recovery; review every statement before execution, especially drops and type changes.SHOW CREATE TABLE for each custom table, diff against the extension's ext_tables.sql and TCA, then hand-craft corrective SQL. Reliability: high for schema alignment but labor-intensive and cannot restore lost data.Does a verified, restorable pre-upgrade database dump exist? If yes, restore and re-run — that is the only reliable path. If no, you are in manual repair territory: record the exact core version, database platform, extension versions, and the first failing wizard step, then engage the extension maintainers for guidance on their specific tables.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.