MigrationCommand
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
depuis
ConsoleTrait
void
depuis
AbstractCommand
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
void
migrate()
Make a migration command
void
rollback()
Rollback migration command
void
reset()
Reset migration command
protected void
makeUp(array $current_migrations, array $migrations)
Up migration
protected void
makeRollback(array $current_migrations, array $migrations)
Rollback migration
protected void
makeReset(array $current_migrations, array $migrations)
Reset migration
void
generate(string $model)
Create a migration command