[TASK] dbal: skip update suggestions for equivalent fields in Install Tool 55/40455/8
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Thu, 18 Jun 2015 19:55:00 +0000 (21:55 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 20 Jul 2015 16:55:54 +0000 (18:55 +0200)
commitf9205842f168839b4d37e63dd0db55a6575cf555
tree1e46cd223c1a11ed32a69b76e5023c07221f4a95
parent793d9bb008d3ae42d9f0485a71f92a2d000f62e7
[TASK] dbal: skip update suggestions for equivalent fields in Install Tool

Make the Install Tool / Database Upgrade Wizard ignore database
alterations for functionally equivalent field types / indexes when
used with DBAL. This is required as some special MySQL native fields
like TINYTEXT, TINY- and MEDIUMINT have no matching types and will
get converted by ADOdb to a type that is able to store longer/bigger
values.

This patch makes the SqlSchemaMigrationService check with the DBAL
Driver which field type/index definition will be used and updates
the field type requested by the database compare to reflect the actual
field type for the DBMS.

Resolves: #67301
Releases: master
Change-Id: I7f28ab38b66a224344069c42744e75bf63e222e6
Reviewed-on: http://review.typo3.org/40455
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php
typo3/sysext/install/Classes/Service/SqlSchemaMigrationService.php
typo3/sysext/install/Tests/Unit/Service/SqlSchemaMigrationServiceTest.php