[BUGFIX] False-Positives in SQL comparison 30/19630/9
authorMario Rimann <mario.rimann@typo3.org>
Fri, 5 Apr 2013 21:10:29 +0000 (23:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 11 Jun 2013 20:21:02 +0000 (22:21 +0200)
commit4e6cc61494604d67f06984cce2aa3933ed90f806
tree91b73c11803f2586fb84d9135285c71e056a26a7
parent06299cce480552df6a175addb206cffc1ecacf8b
[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/19630
Tested-by: Dmitry Dulepov
Tested-by: Wouter Wolters
Reviewed-by: Dmitry Dulepov
Reviewed-by: Markus Klein
Reviewed-by: Wouter Wolters
typo3/sysext/install/Classes/Sql/SchemaMigrator.php
typo3/sysext/install/Tests/Unit/SchemaMigratorTest.php [new file with mode: 0644]