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