class Migrator
Properties
| protected OutputInterface|null | $output |
|
Methods
No description
Run the outstanding migrations at a given path.
No description
No description
No description
Run "up" a migration instance.
Rolls all the currently applied migrations back.
Run "down" a migration instance.
Runs a closure migration based on the migrate direction.
Resolves and run a migration and assign the filename to the exception if needed.
Initialize the Flarum database from a schema dump.
Details
at
line 27
__construct(MigrationRepositoryInterface $repository, ConnectionInterface $connection, Filesystem $files)
at
line 37
void
run(string $path, Extension|null $extension = null)
Run the outstanding migrations at a given path.
at
line 48
void
runMigrationList(string $path, array $migrations, Extension|null $extension = null)
at
line 65
protected void
runUpMigrations(array $migrations, string $path, Extension|null $extension = null)
at
line 81
protected void
runDownMigrations(array $migrations, string $path, Extension|null $extension = null)
at
line 100
protected void
runUp(string $path, string $file, Extension|null $extension = null)
Run "up" a migration instance.
at
line 115
int
reset(string $path, Extension|null $extension = null)
Rolls all the currently applied migrations back.
at
line 135
protected void
runDown(string $path, string $file, Extension|null $extension = null)
Run "down" a migration instance.
at
line 152
protected void
runClosureMigration(array $migration, string $direction = 'up')
Runs a closure migration based on the migrate direction.
at
line 166
protected void
resolveAndRunClosureMigration(string $path, string $file, string $direction = 'up')
Resolves and run a migration and assign the filename to the exception if needed.
at
line 180
array
getMigrationFiles(string $path)
Get all of the migration files in a given path.
at
line 205
array
resolve(string $path, string $file)
Resolve a migration instance from a file.
at
line 227
bool
installFromSchema(string $path, string $driver)
Initialize the Flarum database from a schema dump.
at
line 277
protected void
note(string $message)
at
line 285
MigrationRepositoryInterface
getRepository()
Get the migration repository instance.