diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-30 23:38:26 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-04 12:34:18 +0200 |
commit | 1bf4c75e8bfd32160ee7316c492ddc436f673f37 (patch) | |
tree | 123945f135aaebc0617318ef18b50fa7be125c13 /core/ajax | |
parent | 53c19027069707576f43fa9fc4c79324188a98de (diff) | |
download | nextcloud-server-1bf4c75e8bfd32160ee7316c492ddc436f673f37.tar.gz nextcloud-server-1bf4c75e8bfd32160ee7316c492ddc436f673f37.zip |
Show individual sql schema migration steps during upgrade - on web as well as on the command line
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/update.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 4d8fe19f168..bb4738c83a6 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -26,6 +26,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ +use Symfony\Component\EventDispatcher\GenericEvent; + set_time_limit(0); require_once '../../lib/base.php'; @@ -53,6 +55,13 @@ if (OC::checkUpgrade(false)) { $incompatibleApps = []; $disabledThirdPartyApps = []; + $dispatcher = \OC::$server->getEventDispatcher(); + $dispatcher->addListener('\OC\DB\Migrator::executeSql', function($event) use ($eventSource, $l) { + if ($event instanceof GenericEvent) { + $eventSource->send('success', (string)$l->t('[%d / %d]: %s', [$event[0], $event[1], $event->getSubject()])); + } + }); + $updater->listen('\OC\Updater', 'maintenanceEnabled', function () use ($eventSource, $l) { $eventSource->send('success', (string)$l->t('Turned on maintenance mode')); }); @@ -132,6 +141,9 @@ if (OC::checkUpgrade(false)) { $disabledApps[$app] = (string) $l->t('%s (incompatible)', [$app]); } + $disabledApps=[ + 'Contacts Plus (incompatible)' + ]; if (!empty($disabledApps)) { $eventSource->send('notice', (string)$l->t('Following apps have been disabled: %s', implode(', ', $disabledApps))); |