diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-10-02 22:35:34 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-10-02 22:35:34 +0300 |
commit | 7c5958015f78b1990d3d83f3ab61798281f8f7b3 (patch) | |
tree | 44e807bfc1e9736ab51fda3b6dc41fc28ff24169 | |
parent | da030a02b948b1fb1539b11ecf6047045614d2e7 (diff) |
Display warning in console command when the DB upgrade is major
-rw-r--r-- | plugins/CoreUpdater/Commands/Update.php | 8 |
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) { |