public function options($opts) { parent::options($opts); $opts->add('host:', 'host for database'); $opts->add('port:', 'port for database'); $opts->add('user:'******'user id for database connection'); $opts->add('password:'******'password for database connection'); }
public function init() { parent::init(); $this->command('upgrade', 'LazyRecord\\Command\\MigrateUpgradeCommand'); $this->command('downgrade', 'LazyRecord\\Command\\MigrateDowngradeCommand'); $this->command('new', 'LazyRecord\\Command\\MigrateNewCommand'); $this->command('automatic', 'LazyRecord\\Command\\MigrateAutomaticCommand'); $this->command('status', 'LazyRecord\\Command\\MigrateStatusCommand'); $this->command('diff', 'LazyRecord\\Command\\MigrateNewFromDiffCommand'); }
public function options($opts) { parent::options($opts); // --rebuild $opts->add('r|rebuild', 'rebuild SQL schema.'); // --clean $opts->add('c|clean', 'clean up SQL schema.'); $opts->add('f|file:', 'write schema sql to file'); $opts->add('b|basedata', 'insert basedata'); }
public function options($opts) { $opts->add('f|force', 'force generate all schema files.'); parent::options($opts); }
public function options($opts) { parent::options($opts); $opts->add('no-drop-column', 'Do not drop column in automatic migration process'); }
public function options($opts) { parent::options($opts); $opts->add('script-dir', 'Migration script directory. (default: db/migrations)'); }
public function options($opts) { parent::options($opts); $opts->add('v|verbose', 'Display verbose information'); }