KMP PHP API Reference

TenantMigrationMarkerService
in package
implements TenantMigrationMarkerServiceInterface

Records a pre-migration recovery marker and tags an on-demand logical backup.

Table of Contents

Interfaces

TenantMigrationMarkerServiceInterface

Constants

JOB_TYPE  : mixed = 'tenant_migration_marker'

Properties

$platformConnection  : Connection
$tenantBackupService  : TenantBackupService

Methods

__construct()  : mixed
Constructor.
createMarker()  : TenantMigrationMarkerResult
Create a required pre-migration recovery marker before tenant DDL runs.
baseMetadata()  : array<string, mixed>
insertMarkerJob()  : void
retentionDays()  : int
tag()  : string
tagBackupJob()  : void
Tag the backup job so operators can identify the rollback target.
targetSchema()  : string

Constants

Properties

Methods

baseMetadata()

private baseMetadata(TenantMetadata $tenant, array<string, mixed> $options, string $migrationJobId, string $tag, DateTime $now) : array<string, mixed>
Parameters
$tenant : TenantMetadata
$options : array<string, mixed>
$migrationJobId : string
$tag : string
$now : DateTime
Return values
array<string, mixed>

retentionDays()

private retentionDays(array<string, mixed> $options) : int
Parameters
$options : array<string, mixed>
Return values
int

tag()

private tag(array<string, mixed> $options) : string
Parameters
$options : array<string, mixed>
Return values
string

tagBackupJob()

Tag the backup job so operators can identify the rollback target.

private tagBackupJob(string $backupJobId, string $tag, string $migrationJobId, string $markerJobId) : void
Parameters
$backupJobId : string
$tag : string
$migrationJobId : string
$markerJobId : string

targetSchema()

private targetSchema(array<string, mixed> $options) : string
Parameters
$options : array<string, mixed>
Return values
string
On this page

Search results