Migrate
extends Command
in package
Uses
DatabaseConnection, ChecksDuplicateBasenames
Table of Contents
- configure() : void
- execute() : int
- executeSqlBuffer() : void
- rejectDuplicateBasenames() : bool
- Returns true when duplicates were found (and reported to $out).
- setDatabaseConnection() : mixed
Methods
configure()
protected
configure() : void
Return values
void —execute()
protected
execute(InputInterface $in, OutputInterface $out) : int
Parameters
- $in : InputInterface
- $out : OutputInterface
Return values
int —executeSqlBuffer()
private
executeSqlBuffer(array<string|int, mixed> $statements) : void
Parameters
- $statements : array<string|int, mixed>
Return values
void —rejectDuplicateBasenames()
Returns true when duplicates were found (and reported to $out).
private
rejectDuplicateBasenames(array<string|int, mixed> $migrationFiles, OutputInterface $out) : bool
Parameters
- $migrationFiles : array<string|int, mixed>
- $out : OutputInterface
Return values
bool —setDatabaseConnection()
private
setDatabaseConnection() : mixed