Skip to content

Class DatabaseMigrationOperationalStep

Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll

Describes one ordered operator step in the engine-owned database-migration playbook.

public sealed class DatabaseMigrationOperationalStep

objectDatabaseMigrationOperationalStep

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

DatabaseMigrationOperationalStep(int, string, string, string, DatabaseMigrationStatus, string, bool, string?, string?, IReadOnlyList<string>?, string?, DatabaseMigrationCommandDescriptor?, DatabaseMigrationCommandDescriptor?)

Section titled “ DatabaseMigrationOperationalStep(int, string, string, string, DatabaseMigrationStatus, string, bool, string?, string?, IReadOnlyList<string>?, string?, DatabaseMigrationCommandDescriptor?, DatabaseMigrationCommandDescriptor?)”

Creates a new database-migration operational step.

public DatabaseMigrationOperationalStep(int order, string databaseMigrationId, string requestedRoleId, string resolvedRoleId, DatabaseMigrationStatus status, string executionMode, bool applyOnStartup, string? physicalTargetId = null, string? physicalTargetDisplayName = null, IReadOnlyList<string>? coordinatedMigrationIds = null, string? coordinationHint = null, DatabaseMigrationCommandDescriptor? productionCommand = null, DatabaseMigrationCommandDescriptor? manualCommand = null)

order int

The positive playbook order for this step.

databaseMigrationId string

The logical database-migration target identifier for this step.

requestedRoleId string

The logical database role requested by migration policy.

resolvedRoleId string

The concrete database role that backs this step.

status DatabaseMigrationStatus

The current execution status for this step.

executionMode string

The execution mode such as startup-hosted-service or manual-or-deploy-time.

applyOnStartup bool

Whether startup execution is enabled for this step.

physicalTargetId string?

The stable physical-target identifier that backs this step when known.

physicalTargetDisplayName string?

The operator-facing description of the physical target that backs this step when known.

coordinatedMigrationIds IReadOnlyList<string>?

Other logical migration targets that share the same physical database target.

coordinationHint string?

The operator-facing coordination guidance for shared physical targets, when available.

productionCommand DatabaseMigrationCommandDescriptor?

The primary production-recommended command selected for this step when available.

manualCommand DatabaseMigrationCommandDescriptor?

The primary direct or manual command selected for this step when available.

Gets a value indicating whether startup execution is enabled for this step.

public bool ApplyOnStartup { get; }

bool

Gets the other logical migration targets that share the same physical database target.

public IReadOnlyList<string> CoordinatedMigrationIds { get; }

IReadOnlyList<string>

Gets the operator-facing coordination guidance for shared physical targets, when available.

public string? CoordinationHint { get; }

string?

Gets the logical database-migration target identifier for this step.

public string DatabaseMigrationId { get; }

string

Gets the execution mode for this step.

public string ExecutionMode { get; }

string

Gets a value indicating whether this step publishes a production-recommended command.

public bool HasProductionRecommendedCommand { get; }

bool

Gets the primary direct or manual command selected for this step when available.

public DatabaseMigrationCommandDescriptor? ManualCommand { get; }

DatabaseMigrationCommandDescriptor?

Gets the positive playbook order for this step.

public int Order { get; }

int

Gets the operator-facing description of the physical target that backs this step when known.

public string? PhysicalTargetDisplayName { get; }

string?

Gets the stable physical-target identifier that backs this step when known.

public string? PhysicalTargetId { get; }

string?

Gets the primary production-recommended command selected for this step when available.

public DatabaseMigrationCommandDescriptor? ProductionCommand { get; }

DatabaseMigrationCommandDescriptor?

Gets the logical database role requested by migration policy.

public string RequestedRoleId { get; }

string

Gets a value indicating whether this step needs shared-physical-target coordination.

public bool RequiresPhysicalTargetCoordination { get; }

bool

Gets the concrete database role that backs this step.

public string ResolvedRoleId { get; }

string

Gets the current execution status for this step.

public DatabaseMigrationStatus Status { get; }

DatabaseMigrationStatus