Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2019-02-11 02:12:20 +0300
committerGitHub <noreply@github.com>2019-02-11 02:12:20 +0300
commitc67317737aa08f1b5b3d626b4a3aeb8b626dbfde (patch)
treec9abdaabb86f7dd176675a7c0204335f4ec9af1f /core/Updater.php
parentf768274396fba6aaaa7862a16787b702d01cb40a (diff)
Include non-sql migrations in update dry run output. (#14003)
* Include non-sql migrations in update dry run output. * More translation updates. * Make check for by domain Matomo more robust. * Show migrations in separate boxes based on whether they are SQL or console commands. * Update two screenshots and fix test.
Diffstat (limited to 'core/Updater.php')
-rw-r--r--core/Updater.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/Updater.php b/core/Updater.php
index 2bb6ebcb2d..9af07459b2 100644
--- a/core/Updater.php
+++ b/core/Updater.php
@@ -222,7 +222,7 @@ class Updater
/**
* Returns the list of SQL queries that would be executed during the update
*
- * @return Sql[] of SQL queries
+ * @return Migration[] of SQL queries
* @throws \Exception
*/
public function getSqlQueriesToExecute()
@@ -250,10 +250,7 @@ class Updater
$migrationsForComponent = $update->getMigrations($this);
foreach ($migrationsForComponent as $index => $migration) {
$migration = $this->keepBcForOldMigrationQueryFormat($index, $migration);
-
- if ($migration instanceof Migration\Db) {
- $queries[] = $migration;
- }
+ $queries[] = $migration;
}
$this->hasMajorDbUpdate = $this->hasMajorDbUpdate || call_user_func(array($className, 'isMajorUpdate'));
}