class MigrationCommand extends AbstractCommand (View source)

Traits

Properties

protected Setting $setting

Store dirname

from  AbstractCommand
protected array $namespaces

The application namespace

from  AbstractCommand
protected ArgOption $arg

The Arg Option instance

from  AbstractCommand

Methods

throwFailsCommand(string $message, string $command = null)

Throw fails command

void
__construct(Setting $setting, ArgOption $arg)

AbstractCommand constructor

void
migrate(string $model)

Make a migration command

void
rollback(string $model)

Rollback migration command

void
reset(string $model)

Reset migration command

void
generate(string $model)

Create a migration command

Details

protected throwFailsCommand(string $message, string $command = null)

Throw fails command

Parameters

string $message
string $command

Exceptions

ErrorException

void __construct(Setting $setting, ArgOption $arg)

AbstractCommand constructor

Parameters

Setting $setting
ArgOption $arg

Return Value

void

void migrate(string $model)

Make a migration command

Parameters

string $model

Return Value

void

Exceptions

mixed

void rollback(string $model)

Rollback migration command

Parameters

string $model

Return Value

void

Exceptions

mixed

void reset(string $model)

Reset migration command

Parameters

string $model

Return Value

void

Exceptions

mixed

void generate(string $model)

Create a migration command

Parameters

string $model

Return Value

void

Exceptions

ErrorException