MigrationHelper
class MigrationHelper
Traits
Properties
| protected Container|null | $container | from HasContainer |
Methods
Create a new migration helper instance.
Apply the migrations to the schemas of the connections they run on.
Apply the migrations to the schemas of the connections they run on, keeping the PHP files they read.
Get the migration files, in the order they run.
Get the paths migrations are discovered in, each mapped to the pattern its migration file names match, or to null for a migration file.
Details
in
HasContainer at line 19
void
setContainer(Container $container)
Set the container used for resolution.
in
HasContainer at line 27
Container
getContainer()
Return the current container.
in
HasContainer at line 35
mixed
resolve(string $abstract)
Resolve the given type from the container.
at line 45
__construct(Parser $parser, array $databaseMigrationPath, FileHelper $fileHelper, bool $disableMigrationScan, ReflectionProvider $reflectionProvider, InitializerExprTypeResolver $initializerExprTypeResolver, ConnectionConfigResolver $connectionConfigResolver)
Create a new migration helper instance.
at line 68
array
initializeConnections(array $connections = [])
Apply the migrations to the schemas of the connections they run on.
at line 78
SchemaAggregator
aggregate(array $connections = [])
Apply the migrations to the schemas of the connections they run on, keeping the PHP files they read.
at line 105
array
getMigrationFiles()
Get the migration files, in the order they run.
at line 151
array
getMigrationPaths()
Get the paths migrations are discovered in, each mapped to the pattern its migration file names match, or to null for a migration file.
By default these are the paths migrate reads: those providers register through loadMigrationsFrom(), then the application's migration directory, each holding its _.php files. Configured paths replace them and are directories scanned recursively for .php files, as upstream does; see DirectoryResolver::resolve().