PoppyMigrateRollbackCommand
class PoppyMigrateRollbackCommand extends Command
Poppy Migrate Rollback
Traits
MigrationTrait
ConfirmableTrait
Properties
protected string | $name | The console command name. |
|
protected string | $description | The console command description. |
|
protected Migrator | $migrator | The migrator instance. |
|
protected Poppy | $poppy |
Methods
requireMigrations(string $module)
Require (once) all migration files for the supplied module.
from
MigrationTrait
handle()
Execute the console command.
array
getArguments()
Get the console command arguments.
array
getOptions()
Get the console command options.
array
getMigrationPaths()
Get all the migration paths.
Details
in
MigrationTrait at line 18
protected
requireMigrations(string $module)
Require (once) all migration files for the supplied module.
in
MigrationTrait at line 36
protected string
getMigrationPath(string $module)
Get migration directory path.
at line 50
__construct(Migrator $migrator, Poppy $poppy)
Create a new command instance.
at line 61
handle()
Execute the console command.
at line 85
protected array
getArguments()
Get the console command arguments.
at line 96
protected array
getOptions()
Get the console command options.
at line 110
protected array
getMigrationPaths()
Get all the migration paths.