DatabaseMigrationRepository
class DatabaseMigrationRepository implements MigrationRepositoryInterface (View source)
Properties
protected ConnectionResolverInterface | $resolver | The database connection resolver instance. |
|
protected string | $table | The name of the migration table. |
|
protected string | $connection | The name of the database connection to use. |
Methods
Create a new database migration repository instance.
Get the completed migrations.
Get the list of migrations.
Get the list of the migrations by batch number.
Get the last migration batch.
Get the completed migrations with their batch numbers.
Log that a migration was run.
Remove a migration from the log.
Get the next migration batch number.
Get the last migration batch number.
Create the migration repository data store.
Determine if the migration repository exists.
Delete the migration repository data store.
Get the connection resolver instance.
Resolve the database connection instance.
Set the information source to gather data.
Details
__construct(ConnectionResolverInterface $resolver, string $table)
Create a new database migration repository instance.