class DatabaseMigrationRepository implements MigrationRepositoryInterface

Methods

__construct(ConnectionInterface $connection, string $table)

No description

array
getRan(string|null $extension = null)

<p>Get the ran migrations for the given extension.</p>

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

<p>Log that a migration was run.</p>

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

<p>Remove a migration from the log.</p>

bool
repositoryExists()

<p>Determine if the migration repository exists.</p>

Builder
table()

<p>Get a query builder for the migration table.</p>

Details

__construct(ConnectionInterface $connection, string $table)

Parameters

ConnectionInterface $connection
string $table

array getRan(string|null $extension = null)

<p>Get the ran migrations for the given extension.</p>

Parameters

string|null $extension

Return Value

array

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

<p>Log that a migration was run.</p>

Parameters

string $file
string|null $extension

Return Value

void

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

<p>Remove a migration from the log.</p>

Parameters

string $file
string|null $extension

Return Value

void

bool repositoryExists()

<p>Determine if the migration repository exists.</p>

Return Value

bool

protected Builder table()

<p>Get a query builder for the migration table.</p>

Return Value

Builder