interface MigrationRepositoryInterface

Methods

array
getRan()

Get the completed migrations.

array
getMigrations(int $steps)

Get the list of migrations.

array
getMigrationsByBatch(int $batch)

Get the list of the migrations by batch.

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|null $name)

Set the information source to gather data.

Details

at line 14
array getRan()

Get the completed migrations.

Return Value

array

at line 23
array getMigrations(int $steps)

Get the list of migrations.

Driver-owned migration schemas may omit id and return numeric-string batches.

Parameters

int $steps

Return Value

array

at line 30
array getMigrationsByBatch(int $batch)

Get the list of the migrations by batch.

Parameters

int $batch

Return Value

array

at line 37
array getLast()

Get the last migration batch.

Return Value

array

at line 44
array getMigrationBatches()

Get the completed migrations with their batch numbers.

Return Value

array

at line 49
void log(string $file, int $batch)

Log that a migration was run.

Parameters

string $file
int $batch

Return Value

void

at line 56
void delete(object $migration)

Remove a migration from the log.

Parameters

object $migration

Return Value

void

at line 61
int getNextBatchNumber()

Get the next migration batch number.

Return Value

int

at line 66
void createRepository()

Create the migration repository data store.

Return Value

void

at line 71
bool repositoryExists()

Determine if the migration repository exists.

Return Value

bool

at line 76
void deleteRepository()

Delete the migration repository data store.

Return Value

void

at line 81
void setSource(string|null $name)

Set the information source to gather data.

Parameters

string|null $name

Return Value

void