class DatabaseMigrationRepository implements MigrationRepositoryInterface

Methods

__construct(ConnectionInterface $connection, string $table)

No description

array
getRan(string|null $extension = null)

Get the ran migrations for the given extension.

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

Log that a migration was run.

void
delete(string $file, string|null $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)

Parameters

ConnectionInterface $connection
string $table

array getRan(string|null $extension = null)

Get the ran migrations for the given extension.

Parameters

string|null $extension

Return Value

array

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

Log that a migration was run.

Parameters

string $file
string|null $extension

Return Value

void

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

Remove a migration from the log.

Parameters

string $file
string|null $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