[TASK] dbal: Add support for ALTER TABLE ADD/DROP KEY
Add support for creating and removing indices to DBAL. The SQL is generated using the respective ADOdb methods, so adding/removing PRIMARY keys is not possible. MySQL prefix lengths will be removed from columns in an index definition unless the DBMS specifically enables support for this feature. To ensure that index columns get properly quoted by ADOdb the field names need to be wrapped in backticks. Due to the common requirement that index names must be unique within a database/schema the requested index name will be prepended with a unique table name identifier. Resolves: #67445 Resolves: #67531 Releases: master Change-Id: I274be8df3078867309dde0d5771853c67903719d Reviewed-on: http://review.typo3.org/40397 Reviewed-by:Stephan Großberndt <stephan@grossberndt.de> Tested-by:
Stephan Großberndt <stephan@grossberndt.de> Reviewed-by:
Markus Klein <markus.klein@typo3.org> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Important-67445-DBALSupportForALTERTABLEADDDROPKEYAdded.rst 21 additions, 0 deletions...portant-67445-DBALSupportForALTERTABLEADDDROPKEYAdded.rst
- typo3/sysext/dbal/Classes/Database/DatabaseConnection.php 1 addition, 1 deletiontypo3/sysext/dbal/Classes/Database/DatabaseConnection.php
- typo3/sysext/dbal/Classes/Database/Specifics/AbstractSpecifics.php 1 addition, 0 deletions...ext/dbal/Classes/Database/Specifics/AbstractSpecifics.php
- typo3/sysext/dbal/Classes/Database/SqlParser.php 60 additions, 6 deletionstypo3/sysext/dbal/Classes/Database/SqlParser.php
- typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php 28 additions, 0 deletions.../Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php
- typo3/sysext/dbal/Tests/Unit/Database/SqlParserTest.php 29 additions, 1 deletiontypo3/sysext/dbal/Tests/Unit/Database/SqlParserTest.php
Please register or sign in to comment