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:
authormattab <matthieu.aubry@gmail.com>2016-10-02 22:35:34 +0300
committermattab <matthieu.aubry@gmail.com>2016-10-02 22:35:34 +0300
commit7c5958015f78b1990d3d83f3ab61798281f8f7b3 (patch)
tree44e807bfc1e9736ab51fda3b6dc41fc28ff24169
parentda030a02b948b1fb1539b11ecf6047045614d2e7 (diff)
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) {