Documentation

DatabaseMigrationRepository
in package
implements MigrationRepositoryInterface

Interfaces, Classes and Traits

MigrationRepositoryInterface

Table of Contents

$connection  : string
The name of the database connection to use.
$resolver  : ConnectionResolverInterface
The database connection resolver instance.
$table  : string
The name of the migration table.
__construct()  : void
Create a new database migration repository instance.
createRepository()  : void
Create the migration repository data store.
delete()  : void
Remove a migration from the log.
getConnection()  : Connection
Resolve the database connection instance.
getConnectionResolver()  : ConnectionResolverInterface
Get the connection resolver instance.
getLast()  : array<string|int, mixed>
Get the last migration batch.
getLastBatchNumber()  : int
Get the last migration batch number.
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.
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.
table()  : Builder
Get a query builder for the migration table.

Properties

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>

getRan()

Get the ran migrations.

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
Return values
void

Search results