MigrationRepositoryInterface (Database\Migrations)
MigrationRepositoryInterface
interface MigrationRepositoryInterface (View source)
Methods
array | getRan() Get the ran migrations for a given package. | |
array | getLast() Get the last migration batch. | |
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 ran migrations for a given package.
array getLast()
Get the last migration batch.
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/5.1/Illuminate/Database/Migrations/MigrationRepositoryInterface.html