Pickles Framework Documentation

MigrationRollback extends Command

Handles the rollback of database migrations via the CLI.

This command allows users to revert the most recent migration or a specified number of migrations. It is typically used to undo changes made by previous migration commands.

Table of Contents

Properties

$defaultDescription  : mixed
$defaultHelp  : mixed
$defaultName  : mixed

Methods

__construct()  : mixed
configure()  : mixed
execute()  : int

Properties

$defaultDescription

protected static mixed $defaultDescription = 'Rollback the migrations all migrations back (or n using --n option)'

$defaultHelp

protected static mixed $defaultHelp = 'This command allows you to rollback all migrations in the database/migrations directory.'

Methods

execute()

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

        
On this page

Search results