diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-21 14:52:19 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-21 14:52:19 +0200 |
commit | f7f2a160dd2fa3a5ad56a854cbe0fb6c522badcd (patch) | |
tree | 7f450af83efd4924467ce51d31af5370e25e5cb3 /core/command/upgrade.php | |
parent | f3e208a5a775d8985dbdbc4df49d603a40edcae1 (diff) | |
parent | 9200bbeabad801d54f69a1fedf23292afda27521 (diff) | |
download | nextcloud-server-f7f2a160dd2fa3a5ad56a854cbe0fb6c522badcd.tar.gz nextcloud-server-f7f2a160dd2fa3a5ad56a854cbe0fb6c522badcd.zip |
Merge pull request #19918 from owncloud/send-begin-message
Update: state which step we are going to start and warn if it might b…
Diffstat (limited to 'core/command/upgrade.php')
-rw-r--r-- | core/command/upgrade.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php index 5d4819f6baf..9c313f83e14 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -155,9 +155,15 @@ class Upgrade extends Command { } $output->writeln($message); }); + $updater->listen('\OC\Updater', 'dbUpgradeBefore', function () use($output) { + $output->writeln('<info>Updating database schema</info>'); + }); $updater->listen('\OC\Updater', 'dbUpgrade', function () use($output) { $output->writeln('<info>Updated database</info>'); }); + $updater->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function () use($output) { + $output->writeln('<info>Checking whether the database schema can be updated (this can take a long time depending on the database size)</info>'); + }); $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use($output) { $output->writeln('<info>Checked database schema update</info>'); }); @@ -176,6 +182,12 @@ class Upgrade extends Command { $updater->listen('\OC\Updater', 'repairError', function ($app) use($output) { $output->writeln('<error>Repair error: ' . $app . '</error>'); }); + $updater->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($output) { + $output->writeln('<info>Checking updates of apps</info>'); + }); + $updater->listen('\OC\Updater', 'appSimulateUpdate', function ($app) use ($output) { + $output->writeln("<info>Checking whether the database schema for <$app> can be updated (this can take a long time depending on the database size)</info>"); + }); $updater->listen('\OC\Updater', 'appUpgradeCheck', function () use ($output) { $output->writeln('<info>Checked database schema update for apps</info>'); }); |