[FEATURE] Auto DB fields from TCA for type "radio"
Tables with TCA columns set to type="radio" do not need an ext_tables.sql entry anymore. The core now creates this field automatically. This is one of many patches in this area: The v13 goal is to obsolete ext_tables.sql in most cases by creating default "business" fields of TCA tables automatically. The patch adds the main magic in class DefaultTcaSchema and removes own ext_tables.sql definitions having type=radio. Note that values of type=radio can be both, integers or strings. Items are checked for their values to determine the best suited field type. These can be varchar(255), smallint(6) or int(11). Resolves: #102163 Related: #101553 Releases: main Change-Id: Icd4e6b0f5554882617bec96c3446ff6d2f778c95 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81426 Tested-by:Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php 77 additions, 0 deletions.../sysext/core/Classes/Database/Schema/DefaultTcaSchema.php
- typo3/sysext/core/Documentation/Changelog/13.0/Feature-101553-Auto-createDBFieldsFromTCAColumns.rst 1 addition, 0 deletions...13.0/Feature-101553-Auto-createDBFieldsFromTCAColumns.rst
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/ext_tables.sql 0 additions, 1 deletion...ional/Fixtures/Extensions/test_datahandler/ext_tables.sql
- typo3/sysext/core/Tests/Unit/Database/Schema/DefaultTcaSchemaTest.php 228 additions, 0 deletions.../core/Tests/Unit/Database/Schema/DefaultTcaSchemaTest.php
- typo3/sysext/core/ext_tables.sql 0 additions, 1 deletiontypo3/sysext/core/ext_tables.sql
Please register or sign in to comment