MigrateCommand
final class MigrateCommand implements CommandInterface (View source)
CLI command that runs pending database migrations.
The migration runner is resolved lazily when the command is executed.
Methods
Initializes this MigrateCommand with the collaborators and state required by its database contract.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Details
__construct
__construct(ContainerInterface $container, mixed $stdout = null, mixed $stderr = null)
Initializes this MigrateCommand with the collaborators and state required by its database contract.
name
string
name()
Provides this part of the database contract while preserving the object's current state and driver semantics.
description
string
description()
Provides this part of the database contract while preserving the object's current state and driver semantics.
run
int
run(array $args)
Provides this part of the database contract while preserving the object's current state and driver semantics.