class DatabaseMigrationRepository implements MigrationRepositoryInterface

Properties

protected ConnectionInterface $connection The name of the database connection to use.
protected string $table The name of the migration table.

Methods

__construct(ConnectionInterface $connection, string $table)

Create a new database migration repository instance.

array
getRan(string $extension = null)

Get the ran migrations.

void
log(string $file, string $extension = null)

Log that a migration was run.

void
delete(string $file, string $extension = null)

Remove a migration from the log.

void
createRepository()

Create the migration repository data store.

bool
repositoryExists()

Determine if the migration repository exists.

Builder
table()

Get a query builder for the migration table.

Details

__construct(ConnectionInterface $connection, string $table)

Create a new database migration repository instance.

Parameters

ConnectionInterface $connection
string $table

array getRan(string $extension = null)

Get the ran migrations.

Parameters

string $extension

Return Value

array

void log(string $file, string $extension = null)

Log that a migration was run.

Parameters

string $file
string $extension

Return Value

void

void delete(string $file, string $extension = null)

Remove a migration from the log.

Parameters

string $file
string $extension

Return Value

void

void createRepository()

Create the migration repository data store.

Return Value

void

bool repositoryExists()

Determine if the migration repository exists.

Return Value

bool

protected Builder table()

Get a query builder for the migration table.

Return Value

Builder