diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-22 15:29:54 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-25 16:13:46 +0200 |
commit | 4ba30d40cfc892bee0ea28486e63c479e1aadd20 (patch) | |
tree | 0be3680618181f1a9fc760f0f481ce6424dc045e /core/Command | |
parent | 5509063caac2964bea8e33d272238f266ca6749b (diff) | |
download | nextcloud-server-4ba30d40cfc892bee0ea28486e63c479e1aadd20.tar.gz nextcloud-server-4ba30d40cfc892bee0ea28486e63c479e1aadd20.zip |
Switch to string keys for argument of GenericEvent for OC\DB\Migrator
It seems checkTable is actually never dispatched?
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Upgrade.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php index acf0b503d19..69a7f1f656f 100644 --- a/core/Command/Upgrade.php +++ b/core/Command/Upgrade.php @@ -105,12 +105,12 @@ class Upgrade extends Command { $message = substr($message, 0, 57) . '...'; } $progress->setMessage($message); - if ($event[0] === 1) { + if ($event['step'] === 1) { $output->writeln(''); - $progress->start($event[1]); + $progress->start($event['max']); } - $progress->setProgress($event[0]); - if ($event[0] === $event[1]) { + $progress->setProgress($event['step']); + if ($event['step'] === $event['max']) { $progress->setMessage('Done'); $progress->finish(); $output->writeln(''); |