[BUGFIX] Check for required migrations in silentCacheFrameworkTableSchemaMigration 07/51907/3
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 28 Feb 2017 19:14:42 +0000 (20:14 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 6 Mar 2017 07:39:01 +0000 (08:39 +0100)
Check that there are tables that need to be migrated instead of blindy
calling the SchemaMigrator.

Resolves: #80065
Releases: master
Change-Id: I6992f4fa1786a27123058ce89f8c8669f13ddabc
Reviewed-on: https://review.typo3.org/51907
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/install/Classes/Controller/Action/Tool/UpgradeWizard.php

index fc8fd6c..fc6b254 100644 (file)
@@ -410,7 +410,9 @@ class UpgradeWizard extends Action\AbstractAction
             $cachingFrameworkDatabaseSchemaService->getCachingFrameworkRequiredDatabaseSchema()
         );
 
-        $schemaMigrationService = GeneralUtility::makeInstance(SchemaMigrator::class);
-        $schemaMigrationService->install($createTableStatements);
+        if (!empty($createTableStatements)) {
+            $schemaMigrationService = GeneralUtility::makeInstance(SchemaMigrator::class);
+            $schemaMigrationService->install($createTableStatements);
+        }
     }
 }