示例#1
0
 /**
  * @inheritDoc
  */
 public static function configure(Command $command)
 {
     parent::configure($command);
     $command->setName('timeline:execute')->setAliases([self::COMMAND_ALIAS_SHORT, self::COMMAND_ALIAS])->setDescription('Execute a single migration version up or down manually.')->addArgument(self::ARG_VERSION, InputArgument::REQUIRED, 'The version to execute.')->addArgument(self::ARG_DIRECTION, InputArgument::OPTIONAL, 'Direction in which to execute the migration.', Options::DIRECTION_UP);
 }
示例#2
0
 /**
  * @inheritdoc
  */
 public static function configure(Command $command)
 {
     parent::configure($command);
     $command->setName('timeline:migrate')->setAliases(['migrate'])->setDescription('Migrates all versions up (or down) to and including the specified target.')->addArgument(self::ARG_TARGET, InputArgument::OPTIONAL, 'The target version to migrate to.', 'latest')->addOption(self::OPT_NOPROGRESS, null, InputOption::VALUE_NONE, 'Show a more detailed log instead of a progress bar.')->addOption(self::OPT_STRATEGY, 's', InputOption::VALUE_REQUIRED, 'Strategy to migrate with (up/down/both).', Options::DIRECTION_UP);
 }