Migrator
class Migrator (View source)
Methods
Create a new migrator instance.
Run the outstanding migrations at a given path.
Run an array of migrations.
Rollback the last migration operation.
Rolls all of the currently applied migrations back.
Get all of the migration files in a given path.
Require in all the migration files in a given path.
Resolve a migration instance from a file.
Get the notes for the last operation.
Resolve the database connection instance.
Set the default connection name.
Get the migration repository instance.
Determine if the migration repository exists.
Get the file system instance.
Details
at line line 55
void
__construct(
MigrationRepositoryInterface $repository,
ConnectionResolverInterface $resolver,
Filesystem $files)
Create a new migrator instance.
at line line 71
void
run(
string $path,
array $options = array())
Run the outstanding migrations at a given path.
at line line 96
void
runMigrationList(
array $migrations,
array $options = array())
Run an array of migrations.
at line line 194
int
reset(
bool $pretend = false)
Rolls all of the currently applied migrations back.
at line line 249
array
getMigrationFiles(
string $path)
Get all of the migration files in a given path.
at line line 280
void
requireFiles(
string $path,
array $files)
Require in all the migration files in a given path.
at line line 366
Connection
resolveConnection(
string $connection)
Resolve the database connection instance.
at line line 393
MigrationRepositoryInterface
getRepository()
Get the migration repository instance.