classe MigrationCommand étends AbstractCommand (Voir la source)

Traits

Propriétés

protected Setting $setting

Store dirname

depuis  AbstractCommand
protected array $namespaces

The application namespace

depuis  AbstractCommand
protected ArgOption $arg

The Arg Option instance

depuis  AbstractCommand

Méthodes

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

Détails

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

Throw fails command

Paramètres

string $message
string $command

Exceptions

ErrorException

void __construct(Setting $setting, ArgOption $arg)

AbstractCommand constructor

Paramètres

Setting $setting
ArgOption $arg

Valeur de retour

void

void migrate(string $model)

Make a migration command

Paramètres

string $model

Valeur de retour

void

Exceptions

mixed

void rollback(string $model)

Rollback migration command

Paramètres

string $model

Valeur de retour

void

Exceptions

mixed

void reset(string $model)

Reset migration command

Paramètres

string $model

Valeur de retour

void

Exceptions

mixed

void generate(string $model)

Create a migration command

Paramètres

string $model

Valeur de retour

void

Exceptions

ErrorException