MigrationCommand
class MigrationCommand extends AbstractCommand (View source)
Traits
Properties
protected Setting | $setting | Store dirname |
from AbstractCommand |
protected array | $namespaces | The application namespace |
from AbstractCommand |
protected Argument | $arg | The Arg Option instance |
from AbstractCommand |
Methods
void
throwFailsCommand(string $message, string|null $command = null)
Throw fails command
from
ConsoleTrait
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
Details
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