Copied!

MetadataStorage

MetadataStorage.php : 17

Responsible for handling migration metadata. In particular, what migrations are already executed and when.

Methods

publiccomplete()

MetadataStorage.php : 34

Mark migration as completed.

public complete(ExecutionResult $result) : void

Parameters

Name Type Default value Description
$result ExecutionResult - -

publicensureInitialized()

MetadataStorage.php : 23

Prepares gateway for writing/reading. For relational databases this would usually mean creating or updating a table and it's columns.

public ensureInitialized() : void

publicgetExecutedMigrations()

MetadataStorage.php : 29

Queries gateway to get all executed migrations. This also includes migrations that were previously executed, but are not longer stored in migration directory (i.e. are no longer available).

public getExecutedMigrations() : ExecutedMigrationsList

Return values

ExecutedMigrationsList

publicreset()

MetadataStorage.php : 39

Resets gateway to it's original state. Removes all information about executed migrations.

public reset() : void