MetadataStorage
MetadataStorage.php
:
17
Responsible for handling migration metadata. In particular, what migrations are already executed and when.
Methods¶
complete() ¶
MetadataStorage.php
:
34
Mark migration as completed.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$result | ExecutionResult | - | - |
ensureInitialized() ¶
MetadataStorage.php
:
23
Prepares gateway for writing/reading. For relational databases this would usually mean creating or updating a table and it's columns.
|
|
getExecutedMigrations() ¶
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).
|
|
Return values
ExecutedMigrationsList
reset() ¶
MetadataStorage.php
:
39
Resets gateway to it's original state. Removes all information about executed migrations.
|
|