MigrationRepositoryInterface
interface MigrationRepositoryInterface
Methods
array
getRan()
Get the ran migrations for a given package.
array
getMigrations(int $steps)
Get list of migrations.
array
getLast()
Get the last migration batch.
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
setSource(string $name)
Set the information source to gather data.
Details
at line 12
array
getRan()
Get the ran migrations for a given package.
at line 20
array
getMigrations(int $steps)
Get list of migrations.
at line 27
array
getLast()
Get the last migration batch.
at line 36
void
log(string $file, int $batch)
Log that a migration was run.
at line 44
void
delete(object $migration)
Remove a migration from the log.
at line 51
int
getNextBatchNumber()
Get the next migration batch number.
at line 58
void
createRepository()
Create the migration repository data store.
at line 65
bool
repositoryExists()
Determine if the migration repository exists.
at line 73
void
setSource(string $name)
Set the information source to gather data.