class Migrator
Properties
| protected MigrationRepositoryInterface | $repository | The migration repository implementation. |
|
|
| protected Filesystem | $files | The filesystem instance. |
|
|
| protected OutputInterface | $output | The output interface implementation. |
|
|
| protected ConnectionInterface|MySqlConnection | $connection |
|
Methods
Create a new migrator instance.
Run an array of migrations.
Runs a closure migration based on the migrate direction.
Set the output implementation that should be used by the console.
Details
at
line 57
__construct(MigrationRepositoryInterface $repository, ConnectionInterface $connection, Filesystem $files)
Create a new migrator instance.
at
line 82
void
run(string $path, Extension $extension = null)
Run the outstanding migrations at a given path.
at
line 101
void
runMigrationList(string $path, array $migrations, Extension $extension = null)
Run an array of migrations.
at
line 129
protected void
runUp(string $path, string $file, Extension $extension = null)
Run "up" a migration instance.
at
line 150
int
reset(string $path, Extension $extension = null)
Rolls all of the currently applied migrations back.
at
line 178
protected void
runDown(string $path, string $file, Extension $extension = null)
Run "down" a migration instance.
at
line 199
protected
runClosureMigration($migration, string $direction = 'up')
Runs a closure migration based on the migrate direction.
at
line 214
array
getMigrationFiles(string $path)
Get all of the migration files in a given path.
at
line 241
array
resolve(string $path, string $file)
Resolve a migration instance from a file.
at
line 255
installFromSchema(string $path)
Initialize the Flarum database from a schema dump.
at
line 292
$this
setOutput(OutputInterface $output)
Set the output implementation that should be used by the console.
at
line 305
protected void
note(string $message)
Write a note to the conosle's output.
at
line 317
bool
repositoryExists()
Determine if the migration repository exists.