class
Illuminate
/
Database
/
Migrations
/
DatabaseMigrationRepository
You are viewing an older version of the documentation. For the latest, please visit master documentation.
DatabaseMigrationRepository
Implements
Properties
protected
$resolver ConnectionResolverInterface
The database connection resolver instance.
Default: null
protected
$table string
The name of the migration table.
Default: null
protected
$connection string
The name of the database connection to use.
Default: null
Methods
public
__construct ( ConnectionResolverInterface $resolver , $table ) : void
Create a new database migration repository instance.
Parameters
- $resolver ConnectionResolverInterface
- $table string
public
getRan ( ) : array
Get the completed migrations.
public
getMigrations ( $steps ) : array
Get list of migrations.
Parameters
- $steps int
public
getLast ( ) : array
Get the last migration batch.
public
getMigrationBatches ( ) : array
Get the completed migrations with their batch numbers.
public
log ( $file , $batch ) : void
Log that a migration was run.
Parameters
- $file string
- $batch int
public
delete ( $migration ) : void
Remove a migration from the log.
Parameters
- $migration object
public
getNextBatchNumber ( ) : int
Get the next migration batch number.
public
getLastBatchNumber ( ) : int
Get the last migration batch number.
public
createRepository ( ) : void
Create the migration repository data store.
public
repositoryExists ( ) : bool
Determine if the migration repository exists.
public
deleteRepository ( ) : void
Delete the migration repository data store.
public
getConnectionResolver ( ) : ConnectionResolverInterface
Get the connection resolver instance.
public
setSource ( $name ) : void
Set the information source to gather data.
Parameters
- $name string