ReleaseCompatibilityChecker
in package
FinalYes
Enforces release manifest tenant schema compatibility before deploy or migrate.
Table of Contents
Methods
- assertTenantCompatible() : void
- Fail closed when a tenant schema is outside the release contract.
- incompatibleTenants() : array<int, string>
- previousSchemaLabel() : string
- Format compatible previous schemas for operator-facing errors.
Methods
assertTenantCompatible()
Fail closed when a tenant schema is outside the release contract.
public
assertTenantCompatible(string|null $schemaVersion, ReleaseManifest $manifest[, string|null $tenantSlug = null ]) : void
Parameters
- $schemaVersion : string|null
- $manifest : ReleaseManifest
- $tenantSlug : string|null = null
incompatibleTenants()
public
incompatibleTenants(iterable<string|int, array{slug?: string|null, schema_version?: string|null}> $tenantRows, ReleaseManifest $manifest) : array<int, string>
Parameters
- $tenantRows : iterable<string|int, array{slug?: string|null, schema_version?: string|null}>
- $manifest : ReleaseManifest
Return values
array<int, string>previousSchemaLabel()
Format compatible previous schemas for operator-facing errors.
private
previousSchemaLabel(ReleaseManifest $manifest) : string
Parameters
- $manifest : ReleaseManifest