class Migrator
Properties
protected | $output |
Methods
No description
<p>Run the outstanding migrations at a given path.</p>
No description
<p>Run "up" a migration instance.</p>
<p>Rolls all the currently applied migrations back.</p>
<p>Run "down" a migration instance.</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>
Details
at
line 29
__construct(MigrationRepositoryInterface $repository, ConnectionInterface $connection, Filesystem $files)
at
line 45
void
run(string $path, Extension|null $extension = null)
<p>Run the outstanding migrations at a given path.</p>
at
line 56
void
runMigrationList(string $path, array $migrations, Extension|null $extension = null)
at
line 78
protected void
runUp(string $path, string $file, Extension|null $extension = null)
<p>Run "up" a migration instance.</p>
at
line 93
int
reset(string $path, Extension|null $extension = null)
<p>Rolls all the currently applied migrations back.</p>
at
line 115
protected void
runDown(string $path, string $file, Extension|null $extension = null)
<p>Run "down" a migration instance.</p>
at
line 132
protected void
runClosureMigration(array $migration, string $direction = 'up')
<p>Runs a closure migration based on the migrate direction.</p>
at
line 146
protected void
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 163
array
getMigrationFiles(string $path)
<p>Get all of the migration files in a given path.</p>
at
line 188
array
resolve(string $path, string $file)
<p>Resolve a migration instance from a file.</p>
at
line 210
void
installFromSchema(string $path)
<p>Initialize the Flarum database from a schema dump.</p>