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 Argument $arg

The Arg Option instance

depuis  AbstractCommand

Méthodes

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

Throw fails command

void
__construct(Setting $setting, Argument $arg)

AbstractCommand constructor

void
migrate()

Make a migration command

void
rollback()

Rollback migration command

void
reset()

Reset migration command

void
makeUp(array $current_migrations, array $migrations)

Up migration

void
makeRollback(array $current_migrations, array $migrations)

Rollback migration

void
makeReset(array $current_migrations, array $migrations)

Reset migration

void
generate(string $model)

Create a migration command

Détails

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

Throw fails command

Paramètres

string $message
string|null $command

Valeur de retour

void

Exceptions

ErrorException

void __construct(Setting $setting, Argument $arg)

AbstractCommand constructor

Paramètres

Setting $setting
Argument $arg

Valeur de retour

void

void migrate()

Make a migration command

Valeur de retour

void

Exceptions

Exception

void rollback()

Rollback migration command

Valeur de retour

void

Exceptions

Exception

void reset()

Reset migration command

Valeur de retour

void

Exceptions

Exception

protected void makeUp(array $current_migrations, array $migrations)

Up migration

Paramètres

array $current_migrations
array $migrations

Valeur de retour

void

protected void makeRollback(array $current_migrations, array $migrations)

Rollback migration

Paramètres

array $current_migrations
array $migrations

Valeur de retour

void

protected void makeReset(array $current_migrations, array $migrations)

Reset migration

Paramètres

array $current_migrations
array $migrations

Valeur de retour

void

void generate(string $model)

Create a migration command

Paramètres

string $model

Valeur de retour

void

Exceptions

ErrorException