diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-09 13:25:31 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-09 13:25:31 +0200 |
commit | bf564e2a5a5b19f99d6dad94f099a757f5a044ff (patch) | |
tree | 0b0fa5d5394b0d38fc0a8e7cab9fef84cadfef12 /core/Command/Db | |
parent | b2d21466adc7a6610b7184a879538f395ecc7260 (diff) | |
download | nextcloud-server-bf564e2a5a5b19f99d6dad94f099a757f5a044ff.tar.gz nextcloud-server-bf564e2a5a5b19f99d6dad94f099a757f5a044ff.zip |
Convert command option defaults to strings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Command/Db')
-rw-r--r-- | core/Command/Db/ConvertType.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 47a07b2f324..27f3147b81d 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -132,7 +132,7 @@ class ConvertType extends Command implements CompletionAwareInterface { null, InputOption::VALUE_REQUIRED, 'the maximum number of database rows to handle in a single query, bigger tables will be handled in chunks of this size. Lower this if the process runs out of memory during conversion.', - 1000 + '1000' ) ; } @@ -306,7 +306,7 @@ class ConvertType extends Command implements CompletionAwareInterface { return; } - $chunkSize = $input->getOption('chunk-size'); + $chunkSize = (int)$input->getOption('chunk-size'); $query = $fromDB->getQueryBuilder(); $query->automaticTablePrefix(false); |