KMP PHP API Reference

TenantMigrationCatalog
in package

FinalYes

Discovers the release migration set and compares it with tenant history tables.

Table of Contents

Properties

$expectedVersions  : array<string, array<int, string>>|null

Methods

__construct()  : mixed
inspect()  : TenantMigrationState
Compare every app and plugin migration history with this release.
latestVersion()  : string
Highest globally ordered migration version shipped by this release.
versions()  : array<string, array<int, string>>
appliedVersions()  : array<int, string>
discoverVersions()  : array<string, array<int, string>>
historyTable()  : string
Resolve the legacy per-scope history table required by app configuration.

Properties

Methods

__construct()

public __construct([array<string, array<int, string>>|null $expectedVersions = null ]) : mixed
Parameters
$expectedVersions : array<string, array<int, string>>|null = null

Test/support override keyed by app or plugin name

latestVersion()

Highest globally ordered migration version shipped by this release.

public latestVersion() : string
Return values
string

versions()

public versions() : array<string, array<int, string>>
Return values
array<string, array<int, string>>

appliedVersions()

private appliedVersions(Connection $connection, string $table) : array<int, string>
Parameters
$connection : Connection
$table : string
Return values
array<int, string>

discoverVersions()

private discoverVersions() : array<string, array<int, string>>
Return values
array<string, array<int, string>>

historyTable()

Resolve the legacy per-scope history table required by app configuration.

private historyTable(string $scope) : string
Parameters
$scope : string
Return values
string
On this page

Search results