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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-10-02 22:58:36 +0300
committerGitHub <noreply@github.com>2016-10-02 22:58:36 +0300
commit9b88a7c03540ed9629fc4c68c4b3a91200aa6b94 (patch)
tree07b4ce56e8bd98702401e7a2e40bf3ec2f222aa4
parentf42860f4b00797d65471746d7f0e65e50fc67012 (diff)
parent7c5958015f78b1990d3d83f3ab61798281f8f7b3 (diff)
Merge pull request #10630 from piwik/display_warning_in_console_command
Display warning in console command when the DB upgrade is major
-rw-r--r--plugins/CoreUpdater/Commands/Update.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/CoreUpdater/Commands/Update.php b/plugins/CoreUpdater/Commands/Update.php
index 14865b6c33..4340f34e3e 100644
--- a/plugins/CoreUpdater/Commands/Update.php
+++ b/plugins/CoreUpdater/Commands/Update.php
@@ -163,6 +163,14 @@ class Update extends ConsoleCommand
return;
}
+
+ if ($updater->hasMajorDbUpdate()) {
+ $output->writeln(array(
+ "",
+ sprintf("<comment>%s \n</comment>", Piwik::translate('CoreUpdater_MajorUpdateWarning1'))
+ ));
+ }
+
$output->writeln(array(" *** Note: this is a Dry Run ***", ""));
foreach ($migrationQueries as $query) {