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 28
__construct(MigrationRepositoryInterface $repository, ConnectionInterface $connection, Filesystem $files)
at
line 38
void
run(string $path, Extension|null $extension = null)
Run the outstanding migrations at a given path.
at
line 49
void
runMigrationList(string $path, array $migrations, Extension|null $extension = null)
at
line 66
protected void
runUpMigrations(array $migrations, string $path, Extension|null $extension = null)
at
line 82
protected void
runDownMigrations(array $migrations, string $path, Extension|null $extension = null)
at
line 101
protected void
runUp(string $path, string $file, Extension|null $extension = null)
Run "up" a migration instance.
at
line 116
int
reset(string $path, Extension|null $extension = null)
Rolls all the currently applied migrations back.
at
line 136
protected void
runDown(string $path, string $file, Extension|null $extension = null)
Run "down" a migration instance.
at
line 153
protected void
runClosureMigration(array $migration, string $direction = 'up')
Runs a closure migration based on the migrate direction.
at
line 167
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 181
array
getMigrationFiles(string $path)
Get all of the migration files in a given path.
at
line 206
array
resolve(string $path, string $file)
Resolve a migration instance from a file.
at
line 228
bool
installFromSchema(string $path, DatabaseConfig $dbConfig)
Initialize the Flarum database from a schema dump.
at
line 286
protected void
note(string $message)
at
line 294
MigrationRepositoryInterface
getRepository()
Get the migration repository instance.