class DatabaseMigrationRepository implements MigrationRepositoryInterface (View source)

Methods

void
__construct( ConnectionResolverInterface $resolver, string $table)

Create a new database migration repository instance.

array
getRan()

Get the ran 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.

int
getLastBatchNumber()

Get the last migration batch number.

void
createRepository()

Create the migration repository data store.

bool
repositoryExists()

Determine if the migration repository exists.

getConnectionResolver()

Get the connection resolver instance.

getConnection()

Resolve the database connection instance.

void
setSource( string $name)

Set the information source to gather data.

Details

at line line 37
void __construct( ConnectionResolverInterface $resolver, string $table)

Create a new database migration repository instance.

Parameters

ConnectionResolverInterface $resolver
string $table

Return Value

void

at line line 48
array getRan()

Get the ran migrations.

Return Value

array

at line line 61
array getLast()

Get the last migration batch.

Return Value

array

at line line 75
void log( string $file, int $batch)

Log that a migration was run.

Parameters

string $file
int $batch

Return Value

void

at line line 88
void delete( object $migration)

Remove a migration from the log.

Parameters

object $migration

Return Value

void

at line line 98
int getNextBatchNumber()

Get the next migration batch number.

Return Value

int

at line line 108
int getLastBatchNumber()

Get the last migration batch number.

Return Value

int

at line line 118
void createRepository()

Create the migration repository data store.

Return Value

void

at line line 137
bool repositoryExists()

Determine if the migration repository exists.

Return Value

bool

at line line 159
ConnectionResolverInterface getConnectionResolver()

Get the connection resolver instance.

at line line 169
Connection getConnection()

Resolve the database connection instance.

Return Value

Connection

at line line 180
void setSource( string $name)

Set the information source to gather data.

Parameters

string $name

Return Value

void