MigrationRepositoryInterface
interface MigrationRepositoryInterface (View source)
Methods
Get the completed migrations.
Get the list of migrations.
Get the list of the migrations by batch.
Get the last migration batch.
Get the completed migrations with their batch numbers.
Log that a migration was run.
Remove a migration from the log.
Get the next migration batch number.
Create the migration repository data store.
Determine if the migration repository exists.
Delete the migration repository data store.
Set the information source to gather data.
Details
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 $name)
Set the information source to gather data.