Migrator

Migrator

class Migrator (View source)

Methods

void __construct(MigrationRepositoryInterface $repository, ConnectionResolverInterface $resolver, Filesystem $files)

Create a new migrator instance.

array run(array|string $paths = array(), array $options = array())

Run the outstanding migrations at a given path.

void runMigrationList(array $migrations, array $options = array())

Run an array of migrations.

array rollback(array|string $paths = array(), array $options = array())

Rollback the last migration operation.

array reset(array|string $paths = array(), bool $pretend = false)

Rolls all of the currently applied migrations back.

array getMigrationFiles(string|array $paths)

Get all of the migration files in a given path.

void requireFiles(array $files)

Require in all the migration files in a given path.

object resolve(string $file)

Resolve a migration instance from a file.

string getMigrationName(string $path)

Get the name of the migration.

array getNotes()

Get the notes for the last operation.

Connection resolveConnection(string $connection)

Resolve the database connection instance.

void path(string $path)

Register a custom migration path.

array paths()

Get all of the custom migration paths.

void setConnection(string $name)

Set the default connection name.

MigrationRepositoryInterface getRepository()

Get the migration repository instance.

bool repositoryExists()

Determine if the migration repository exists.

Filesystem getFilesystem()

Get the file system instance.

doc_Laravel
2016-11-02 16:26:10
Comments
Leave a Comment

Please login to continue.