[BUGFIX] False-Positives in SQL comparison 53/21353/3
authorMario Rimann <mario.rimann@typo3.org>
Fri, 5 Apr 2013 21:10:29 +0000 (23:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 8 Jul 2013 19:11:37 +0000 (21:11 +0200)
commitd181d1bdb1090ac696b2785c22ec0f0dd2ba6d3a
treeba104706b60b90ced8afae687d5436711b931d92
parent215465e741b6f7d4c7472aadbf1baeef3504a17f
[BUGFIX] False-Positives in SQL comparison

When one has e.g. a field "foo INT(11) DEFAULT '0' NOT NULL" in
it's ext_tables.sql definition, the comparison will always complain
about that field, since the underlying DB lists this field as "int(11)"
which is lowercased.

This integrates a regex that lowercases the field types before
comparing the field from the definition against the existing field.

Change-Id: If76abbbca56d0ef0ab796a7f4e6bee1197ac39e6
Resolves: #41344
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/21353
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/install/Classes/Sql/SchemaMigrator.php
typo3/sysext/install/Tests/Unit/SchemaMigratorTest.php [new file with mode: 0644]