class DatabaseMigrationRepository implements MigrationRepositoryInterface

Properties

protected ConnectionResolverInterface $resolver <p>The database connection resolver instance.</p>
protected string $table <p>The name of the migration table.</p>
protected string $connection <p>The name of the database connection to use.</p>

Methods

void
__construct(ConnectionResolverInterface $resolver, string $table)

<p>Create a new database migration repository instance.</p>

array
getRan($extension = null)

<p>Get the ran migrations.</p>

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

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

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

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

void
createRepository()

<p>Create the migration repository data store.</p>

bool
repositoryExists()

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

Builder
table()

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

ConnectionResolverInterface
getConnectionResolver()

<p>Get the connection resolver instance.</p>

Connection
getConnection()

<p>Resolve the database connection instance.</p>

void
setSource(string $name)

<p>Set the information source to gather data.</p>

Details

void __construct(ConnectionResolverInterface $resolver, string $table)

<p>Create a new database migration repository instance.</p>

Parameters

ConnectionResolverInterface $resolver
string $table

Return Value

void

array getRan($extension = null)

<p>Get the ran migrations.</p>

Parameters

$extension

Return Value

array

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

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

Parameters

string $file
string $extension

Return Value

void

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

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

Parameters

string $file
string $extension

Return Value

void

void createRepository()

<p>Create the migration repository data store.</p>

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

ConnectionResolverInterface getConnectionResolver()

<p>Get the connection resolver instance.</p>

Return Value

ConnectionResolverInterface

Connection getConnection()

<p>Resolve the database connection instance.</p>

Return Value

Connection

void setSource(string $name)

<p>Set the information source to gather data.</p>

Parameters

string $name

Return Value

void