Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #84 from digiaonline/fix-apply-migration-options
Browse files Browse the repository at this point in the history
Fix bug with parsing command options in ApplyMigrationCommand
  • Loading branch information
Jalle19 committed Mar 15, 2018
2 parents 9e9b3a2 + 822b816 commit 8fd4e79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/ApplyMigrationCommand.php
Expand Up @@ -25,7 +25,7 @@ class ApplyMigrationCommand extends AbstractCommand
*/
protected $signature = 'elastic:migrations:migrate
{ config : The path to the index configuration file }
{ --batchSize= : The number of documents to handle per batch while re-indexing }
{ --batchSize=' . self::DEFAULT_BATCH_SIZE . ' : The number of documents to handle per batch while re-indexing }
{ --updateAllTypes : Forces update across all types }';

/**
Expand All @@ -41,8 +41,8 @@ class ApplyMigrationCommand extends AbstractCommand
public function handle()
{
$configurationPath = (string)$this->argument('config');
$batchSize = (int)$this->option('batchSize', self::DEFAULT_BATCH_SIZE);
$updateAllTypes = (bool)$this->option('updateAllTypes', false);
$batchSize = (int)$this->option('batchSize');
$updateAllTypes = (bool)$this->option('updateAllTypes');

$pipeline = new Pipeline([
new DetermineTargetVersionStage(),
Expand Down

0 comments on commit 8fd4e79

Please sign in to comment.