MigrationRepositoryInterface
in
Table of Contents
- createRepository() : void
- Create the migration repository data store.
- delete() : void
- Remove a migration from the log.
- getLast() : array<string|int, mixed>
- Get the last migration batch.
- getMigrations() : array<string|int, mixed>
- Get list of migrations.
- getNextBatchNumber() : int
- Get the next migration batch number.
- getRan() : array<string|int, mixed>
- Get the ran migrations for a given package.
- log() : void
- Log that a migration was run.
- repositoryExists() : bool
- Determine if the migration repository exists.
- setSource() : void
- Set the information source to gather data.
Methods
createRepository()
Create the migration repository data store.
public
createRepository() : void
Return values
void —delete()
Remove a migration from the log.
public
delete(object $migration) : void
Parameters
- $migration : object
Return values
void —getLast()
Get the last migration batch.
public
getLast() : array<string|int, mixed>
Return values
array<string|int, mixed> —getMigrations()
Get list of migrations.
public
getMigrations(int $steps) : array<string|int, mixed>
Parameters
- $steps : int
Return values
array<string|int, mixed> —getNextBatchNumber()
Get the next migration batch number.
public
getNextBatchNumber() : int
Return values
int —getRan()
Get the ran migrations for a given package.
public
getRan() : array<string|int, mixed>
Return values
array<string|int, mixed> —log()
Log that a migration was run.
public
log(string $file, int $batch) : void
Parameters
- $file : string
- $batch : int
Return values
void —repositoryExists()
Determine if the migration repository exists.
public
repositoryExists() : bool
Return values
bool —setSource()
Set the information source to gather data.
public
setSource(string $name) : void
Parameters
- $name : string