class SquashedMigrationHelper

Reads the schema dumps that schema:dump writes for the booted connections.

Methods

__construct(array $schemaPaths, FileHelper $fileHelper, ConnectionConfigResolver $connectionConfigResolver, bool $disableSchemaScan)

Create a new squashed migration helper instance.

array
initializeConnections()

Read the schema dumps into the facts of the connections that own them.

array
getSchemaFiles()

Get the schema dumps of the booted connections, which the migration cache fingerprints.

array
getSchemaDirectories()

The directories scanned for schema dumps, see DirectoryResolver::resolve().

Details

at line 32
__construct(array $schemaPaths, FileHelper $fileHelper, ConnectionConfigResolver $connectionConfigResolver, bool $disableSchemaScan)

Create a new squashed migration helper instance.

Parameters

array $schemaPaths
FileHelper $fileHelper
ConnectionConfigResolver $connectionConfigResolver
bool $disableSchemaScan

at line 51
array initializeConnections()

Read the schema dumps into the facts of the connections that own them.

Unlike upstream, which merged every .dump and .sql file it found into one schema, a dump belongs to the connection its name gives, and one that cannot be read leaves its owner's relations unknown.

Return Value

array

at line 140
array getSchemaFiles()

Get the schema dumps of the booted connections, which the migration cache fingerprints.

Return Value

array

at line 178
array getSchemaDirectories()

The directories scanned for schema dumps, see DirectoryResolver::resolve().

Return Value

array