[TASK] Allow table without columns in ext_tables.sql
When core DefaultTcaSchema auto creates more and more column definitions, ext_tables.sql can end up with a table definition without columns: CREATE TABLE tx_foo ( ); This would be invalid as such in most DBMS since tables usually must have at least one column. However, it is a valid definition in the scope of ext_tables.sql files when the core enriches fields from TCA. The parser currently chokes on tables without columns, which is fixed with the patch. Resolves: #101623 Related: #101553 Releases: main Change-Id: Icab369bff6a93e6c293803ed2dfb3473b41d8a97 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80465 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan B�rk <stefan@buerk.tech> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Stefan B�rk <stefan@buerk.tech>
Showing
- typo3/sysext/core/Classes/Database/Schema/Parser/Parser.php 39 additions, 32 deletionstypo3/sysext/core/Classes/Database/Schema/Parser/Parser.php
- typo3/sysext/core/Tests/Unit/Database/Schema/Parser/CreateTableFragmentTest.php 10 additions, 9 deletions...s/Unit/Database/Schema/Parser/CreateTableFragmentTest.php
Please register or sign in to comment