MigrationLedgerInterface
The migration tracking store: which versions already ran per plugin. Read semantics: executedVersions()/executedMigrations() MUST NOT throw when the backing store is unavailable — they return [] (matching the host's historical behavior).
MigrationLedgerInterface::ensureStorage()
abstract public function ensureStorage(): voidMake sure the ledger storage exists (create it when missing).
MigrationLedgerInterface::recordExecuted()
abstract public function recordExecuted(string $pluginName, string $version, ?string $description, DateTimeImmutable $executedAt): voidRecord one executed migration.
Parameters
| Name | Type | Description |
|---|---|---|
| $pluginName | string | |
| $version | string | |
| $description | ?string | |
| $executedAt | DateTimeImmutable |
MigrationLedgerInterface::removeExecuted()
abstract public function removeExecuted(string $pluginName, string $version): voidRemove one executed record (rollback bookkeeping). Unknown pair: no-op.
Parameters
| Name | Type | Description |
|---|---|---|
| $pluginName | string | |
| $version | string |
MigrationLedgerInterface::executedVersions()
abstract public function executedVersions(string $pluginName): arrayVersions already executed for a plugin, ordered by execution time ascending.
Parameters
| Name | Type | Description |
|---|---|---|
| $pluginName | string |
MigrationLedgerInterface::executedMigrations()
abstract public function executedMigrations(string $pluginName): arrayFull ledger rows for a plugin, ordered by execution time ascending.
Parameters
| Name | Type | Description |
|---|---|---|
| $pluginName | string |