/** * {@inheritdoc} */ protected function configure() { parent::configure(); $this->setName('down')->addArgument('version', InputArgument::REQUIRED, 'The version number for the migration')->setDescription('Revert a specific migration')->setHelp(<<<EOT The <info>down</info> command reverts a specific migration <info>phpmig down 20111018185412</info> EOT ); }
/** * {@inheritdoc} */ protected function configure() { parent::configure(); $this->setName('status')->setDescription('Show the up/down status of all migrations')->setHelp(<<<EOT The <info>status</info> command prints a list of all migrations, along with their current status <info>phpmig status</info> EOT ); }
/** * {@inheritdoc} */ protected function configure() { parent::configure(); $this->setName('generate')->addArgument('name', InputArgument::REQUIRED, 'The name for the migration')->addArgument('path', InputArgument::OPTIONAL, 'The directory in which to put the migration ( optional if phpmig.migrations_path is setted )')->setDescription('Generate a new migration')->setHelp(<<<EOT The <info>generate</info> command creates a new migration with the name and path specified <info>phpmig generate Dave ./migrations</info> EOT ); }
/** * {@inheritdoc} */ protected function configure() { parent::configure(); $this->setName('up')->addArgument('version', InputArgument::REQUIRED, 'The version number for the migration')->setDescription('Run a specific migration')->setHelp(<<<EOT The <info>up</info> command runs a specific migration <info>phpmig up 20111018185121</info> EOT ); }
/** * {@inheritdoc} */ protected function configure() { parent::configure(); $this->setName('rollback')->addOption('--target', '-t', InputArgument::OPTIONAL, 'The version number to rollback to')->setDescription('Rollback last, or to a specific migration')->setHelp(<<<EOT The <info>rollback</info> command reverts the last migration, or optionally up to a specific version <info>phpmig rollback</info> <info>phpmig rollback -t 20111018185412</info> EOT ); }
protected function configure() { parent::configure(); $this->setName('check')->setDescription('Check all migrations have been run, exit with non-zero if not')->setHelp(<<<EOT The <info>check</info> checks that all migrations have been run and exits with a non-zero exit code if not, useful for build or deployment scripts. <info>phpmig check</info> EOT ); }
/** * {@inheritdoc} */ protected function configure() { parent::configure(); $this->setName('migrate')->addOption('--target', '-t', InputArgument::OPTIONAL, 'The version number to migrate to')->setDescription('Run all migrations')->setHelp(<<<EOT The <info>migrate</info> command runs all available migrations, optionally up to a specific version <info>phpmig migrate</info> <info>phpmig migrate -t 20111018185412</info> EOT ); }