MigrationRepositoryInterface
interface MigrationRepositoryInterface (View source)
Methods
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. | |
void | createRepository() Create the migration repository data store. | |
bool | repositoryExists() Determine if the migration repository exists. | |
void | setSource(string $name) Set the information source to gather data. |
Details
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.
void createRepository()
Create the migration repository data store.
bool repositoryExists()
Determine if the migration repository exists.
void setSource(string $name)
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/6.x/Illuminate/Database/Migrations/MigrationRepositoryInterface.html