interface MigrationRepositoryInterface (View source)

Methods

array
getRan()

Get the completed migrations.

array
getMigrations(int $steps)

Get the list of migrations.

array
getLast()

Get the last migration batch.

array
getMigrationBatches()

Get the completed migrations with their batch numbers.

void
log(string $file, int $batch)

Log that a migration was run.

void
delete(object $migration)

Remove a migration from the log.

int
getNextBatchNumber()

Get the next migration batch number.

void
createRepository()

Create the migration repository data store.

bool
repositoryExists()

Determine if the migration repository exists.

void
deleteRepository()

Delete the migration repository data store.

void
setSource(string $name)

Set the information source to gather data.

Details

array getRan()

Get the completed migrations.

Return Value

array

array getMigrations(int $steps)

Get the list of migrations.

Parameters

int $steps

Return Value

array

array getLast()

Get the last migration batch.

Return Value

array

array getMigrationBatches()

Get the completed migrations with their batch numbers.

Return Value

array

void log(string $file, int $batch)

Log that a migration was run.

Parameters

string $file
int $batch

Return Value

void

void delete(object $migration)

Remove a migration from the log.

Parameters

object $migration

Return Value

void

int getNextBatchNumber()

Get the next migration batch number.

Return Value

int

void createRepository()

Create the migration repository data store.

Return Value

void

bool repositoryExists()

Determine if the migration repository exists.

Return Value

bool

void deleteRepository()

Delete the migration repository data store.

Return Value

void

void setSource(string $name)

Set the information source to gather data.

Parameters

string $name

Return Value

void