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.

string
getMigrationPath(string $module)

Get migration directory path.

__construct(Migrator $migrator, Poppy $poppy)

Create a new command instance.

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.

Parameters

string $module module

in MigrationTrait at line 36
protected string getMigrationPath(string $module)

Get migration directory path.

Parameters

string $module module

Return Value

string

at line 50
__construct(Migrator $migrator, Poppy $poppy)

Create a new command instance.

Parameters

Migrator $migrator
Poppy $poppy

at line 61
handle()

Execute the console command.

at line 85
protected array getArguments()

Get the console command arguments.

Return Value

array

at line 96
protected array getOptions()

Get the console command options.

Return Value

array

at line 110
protected array getMigrationPaths()

Get all the migration paths.

Return Value

array