protected function configure() { $this->setName($this->getName())->setDescription('Generate a blank migration class.')->addOption('editor-cmd', null, InputOption::VALUE_OPTIONAL, 'Open file with this command upon creation.')->setHelp(<<<EOT The <info>%command.name%</info> command generates a blank migration class: <info>%command.full_name%</info> You can optionally specify a <comment>--editor-cmd</comment> option to open the generated file in your favorite editor: <info>%command.full_name% --editor-cmd=mate</info> EOT ); parent::configure(); }
protected function configure() { $this->setName($this->getName())->setDescription('Manually add and delete migration versions from the version table.')->addArgument('version', InputArgument::REQUIRED, 'The version to add or delete.', null)->addOption('add', null, InputOption::VALUE_NONE, 'Add the specified version.')->addOption('delete', null, InputOption::VALUE_NONE, 'Delete the specified version.')->setHelp(<<<EOT The <info>%command.name%</info> command allows you to manually add and delete migration versions from the version table: <info>%command.full_name% YYYYMMDDHHMMSS --add</info> If you want to delete a version you can use the <comment>--delete</comment> option: <info>%command.full_name% YYYYMMDDHHMMSS --delete</info> EOT ); parent::configure(); }
protected function configure() { $this->setName($this->getName())->setDescription('View the status of a set of migrations.')->addOption('show-versions', null, InputOption::VALUE_NONE, 'This will display a list of all available migrations and their status')->setHelp(<<<EOT The <info>%command.name%</info> command outputs the status of a set of migrations: <info>%command.full_name%</info> You can output a list of all available migrations and their status with <comment>--show-versions</comment>: <info>%command.full_name% --show-versions</info> EOT ); parent::configure(); }
protected function configure() { $this->setName($this->getName())->setDescription('Execute a single migration version up or down manually.')->addArgument('version', InputArgument::REQUIRED, 'The version to execute.', null)->addOption('up', null, InputOption::VALUE_NONE, 'Execute the migration up.')->addOption('down', null, InputOption::VALUE_NONE, 'Execute the migration down.')->setHelp(<<<EOT The <info>%command.name%</info> command executes a single migration version up or down manually: <info>%command.full_name% YYYYMMDDHHMMSS</info> If no <comment>--up</comment> or <comment>--down</comment> option is specified it defaults to up: <info>%command.full_name% YYYYMMDDHHMMSS --down</info> Or you can also execute the migration without a warning message which you need to interact with: <info>%command.full_name% --no-interaction</info> EOT ); parent::configure(); }
protected function configure() { $this->setName($this->getName())->setDescription('Execute a migration to a specified version or the latest available version.')->addArgument('version', InputArgument::OPTIONAL, 'The version to migrate to.', null)->setHelp(<<<EOT The <info>%command.name%</info> command executes a migration to a specified version or the latest available version: <info>%command.full_name%</info> You can optionally manually specify the version you wish to migrate to: <info>%command.full_name% YYYYMMDDHHMMSS</info> Or you can also execute the migration without a warning message which you need to interact with: <info>%command.full_name% --no-interaction</info> EOT ); parent::configure(); }