#110426Generate table option changes without platform hooks
Description
doctrine/dbal neither compares nor applies table options such as ENGINE, ROW_FORMAT, the default character set or the collation. TYPO3 does, and injects the resulting statement by overriding getAlterTableSQL() on every extended MySQL and MariaDB platform. That override needs the extended TableDiff to read the changed options from, and is the last reason for the platform classes to know about a schema diff at all.
Fix
Since the statement depends on nothing but the platform, the current table and the changed options, it is built by TableOptionsStatementBuilder and added to the statements of the table like any other one. The MySQL rule to always re-apply ROW_FORMAT when ENGINE changes is kept, including the reasoning behind it: the row format stated at CREATE TABLE time is cached and would otherwise be re-applied by the engine change.
MySQLCompatibleAlterTablePlatformAwareTrait and the getAlterTableSQL() overrides of all eight MySQL and MariaDB platform classes are removed with it. None of them references a schema diff anymore, which is what lets the diff classes go in sub-task 9.
Patch
Gerrit 95191, topic database-analyzer.
Releases: main
Reviews 1
History 09
-
Gerrit Code Review pushed patch set 3 for main to change 95191 status
NewUnder Review <span data-processor="relativetime" data-value="2026-08-11T04:01:00+00:00" > 08/11/26, 04:01 </span> -
Gerrit Code Review pushed patch set 4 for main to change 95191 <span data-processor="relativetime" data-value="2026-08-11T05:17:38+00:00" > 08/11/26, 05:17 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 95191 <span data-processor="relativetime" data-value="2026-08-11T11:38:30+00:00" > 08/11/26, 11:38 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 95191 <span data-processor="relativetime" data-value="2026-08-11T13:29:37+00:00" > 08/11/26, 13:29 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 95191 <span data-processor="relativetime" data-value="2026-08-11T14:14:18+00:00" > 08/11/26, 14:14 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 95191 <span data-processor="relativetime" data-value="2026-08-14T20:49:01+00:00" > 08/14/26, 20:49 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 95191 <span data-processor="relativetime" data-value="2026-08-31T10:29:07+00:00" > 08/31/26, 10:29 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 95191 <span data-processor="relativetime" data-value="2026-09-02T10:40:49+00:00" > 09/02/26, 10:40 </span>
-
Gerrit Code Review pushed patch set 11 for main to change 95191 <span data-processor="relativetime" data-value="2026-09-02T13:16:42+00:00" > 09/02/26, 13:16 </span>