class Migrator
Properties
protected MigrationRepositoryInterface | $repository | <p>The migration repository implementation.</p> | ||
protected Filesystem | $files | <p>The filesystem instance.</p> | ||
protected OutputInterface|null | $output | <p>The output interface implementation.</p> | ||
protected ConnectionInterface | $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>Resolves and run a migration and assign the filename to the exception if needed.</p>
<p>Set the output implementation that should be used by the console.</p>
Details
at
line 54
__construct(MigrationRepositoryInterface $repository, ConnectionInterface $connection, Filesystem $files)
<p>Create a new migrator instance.</p>
at
line 79
void
run(string $path, Extension $extension = null)
<p>Run the outstanding migrations at a given path.</p>
at
line 98
void
runMigrationList(string $path, array $migrations, Extension $extension = null)
<p>Run an array of migrations.</p>
at
line 125
protected void
runUp(string $path, string $file, Extension $extension = null)
<p>Run "up" a migration instance.</p>
at
line 144
int
reset(string $path, Extension $extension = null)
<p>Rolls all of the currently applied migrations back.</p>
at
line 172
protected void
runDown(string $path, string $file, Extension $extension = null)
<p>Run "down" a migration instance.</p>
at
line 191
protected
runClosureMigration($migration, string $direction = 'up')
<p>Runs a closure migration based on the migrate direction.</p>
at
line 208
protected
resolveAndRunClosureMigration(string $path, string $file, string $direction = 'up')
<p>Resolves and run a migration and assign the filename to the exception if needed.</p>
at
line 225
array
getMigrationFiles(string $path)
<p>Get all of the migration files in a given path.</p>
at
line 252
array
resolve(string $path, string $file)
<p>Resolve a migration instance from a file.</p>
at
line 268
installFromSchema(string $path)
<p>Initialize the Flarum database from a schema dump.</p>
at
line 305
$this
setOutput(OutputInterface $output)
<p>Set the output implementation that should be used by the console.</p>
at
line 318
protected void
note(string $message)
<p>Write a note to the conosle's output.</p>
at
line 330
bool
repositoryExists()
<p>Determine if the migration repository exists.</p>