class DatabaseMigrationRepository implements MigrationRepositoryInterface (View source)
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. |
void | __construct(ConnectionResolverInterface $resolver, string $table) Create a new database migration repository instance. | |
array | getRan() Get the completed migrations. | |
array | getMigrations(int $steps) Get list of migrations. | |
array | getLast() Get the last migration batch. | |
array | getMigrationBatches() Get the completed migrations with their batch numbers. | |
void | log(string $file, int $batch) Log that a migration was run. | |
void | delete(object $migration) Remove a migration from the log. | |
int | getNextBatchNumber() Get the next migration batch number. | |
int | getLastBatchNumber() Get the last migration batch number. | |
void | createRepository() Create the migration repository data store. | |
bool | repositoryExists() Determine if the migration repository exists. | |
void | deleteRepository() Delete the migration repository data store. | |
Builder | table() Get a query builder for the migration table. | |
ConnectionResolverInterface | getConnectionResolver() Get the connection resolver instance. | |
Connection | getConnection() Resolve the database connection instance. | |
void | setSource(string $name) Set the information source to gather data. |
Create a new database migration repository instance.
Get the completed migrations.
Get list of migrations.
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 a query builder for the migration table.
Get the connection resolver instance.
Resolve the database connection instance.
Set the information source to gather data.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/Migrations/DatabaseMigrationRepository.html