MigrationRollback
extends Command
in package
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.'
$defaultName
protected
static mixed
$defaultName
= 'migration:rollback'
Methods
__construct()
public
__construct() : mixed
configure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface