From 5b97369b00afbdf55eed145be9ac981dca06d2a9 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 4 Jun 2014 16:40:53 +0200 Subject: Simulate apps database schema update on upgrade When upgrade, also simulate the database schema update for apps before doing the actual upgrade. --- core/command/upgrade.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/command') diff --git a/core/command/upgrade.php b/core/command/upgrade.php index 8ce8ef9b6e5..c3946d2aab5 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -56,6 +56,9 @@ class Upgrade extends Command { $updater->listen('\OC\Updater', 'dbUpgrade', function () use($output) { $output->writeln('Updated database'); }); + $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use($output) { + $output->writeln('Checked database schema update'); + }); $updater->listen('\OC\Updater', 'disabledApps', function ($appList) use($output) { $output->writeln('Disabled incompatible apps: ' . implode(', ', $appList) . ''); }); -- cgit v1.2.3