[BUGFIX] Follow-up to Migrate update script to Doctrine 31/51231/2
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 10 Jan 2017 02:48:19 +0000 (21:48 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 10 Jan 2017 02:49:38 +0000 (03:49 +0100)
Change-Id: I6f89c19589365d920527a5f9fc68e4b98920c81b
Resolves: #79209
Reviewed-on: https://review.typo3.org/51231
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Classes/Utility/DatabaseUpdateUtility.php

index 40baa8c..94861ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
        * Resolves #77246: Missing extbase declaration for field "static_lang_isocode" in sys_language
        * Follow-up to Resolves #79209: Migrate update script to Doctrine
        * Resolves #79229: Migrate suggest receiver to Doctrine
+       * Follow-up to Resolves #79209: Migrate update script to Doctrine
 
 2017-01-08  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
index 9a55c81..f262e4e 100644 (file)
@@ -62,7 +62,7 @@ class DatabaseUpdateUtility
                                }
                                if (count($fields)) {
                                        if (class_exists(\TYPO3\CMS\Core\Database\ConnectionPool::class)) {
-                                               $queryBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ConnectionPool::class)->getQueryBuilderForTable('tt_content');
+                                               $queryBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ConnectionPool::class)->getQueryBuilderForTable($parsedResult['TABLE']);
                                                $queryBuilder->getRestrictions()->removeAll();
                                                $queryBuilder->update($parsedResult['TABLE']);
                                                // We expect only a few of conditions combined by AND