MigrationRepositoryInterface
interface MigrationRepositoryInterface
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
at line 14
array
getRan()
Get the completed migrations.
at line 23
array
getMigrations(int $steps)
Get the list of migrations.
Driver-owned migration schemas may omit id and return numeric-string batches.
at line 30
array
getMigrationsByBatch(int $batch)
Get the list of the migrations by batch.
at line 37
array
getLast()
Get the last migration batch.
at line 44
array
getMigrationBatches()
Get the completed migrations with their batch numbers.
at line 49
void
log(string $file, int $batch)
Log that a migration was run.
at line 56
void
delete(object $migration)
Remove a migration from the log.
at line 61
int
getNextBatchNumber()
Get the next migration batch number.
at line 66
void
createRepository()
Create the migration repository data store.
at line 71
bool
repositoryExists()
Determine if the migration repository exists.
at line 76
void
deleteRepository()
Delete the migration repository data store.
at line 81
void
setSource(string|null $name)
Set the information source to gather data.