type

Operation

type Operation struct { // Kind selects the runner behavior. Kind StepKind `json:"kind"` // Name is a stable, review-friendly operation label. Name string `json:"name"` // SQL is present only for StepSQL. SQL string `json:"sql,omitempty"` // Rename is present only for StepRenameContent. Rename *Rename `json:"rename,omitempty"` // Plugin is present only for StepPluginSQL. Plugin *PluginStep `json:"plugin,omitempty"` // ResourceIDs is present only while planning a StepRetireResources step. ResourceIDs []schema.StableID `json:"resourceIds,omitempty"` // PurgeVersionOwnerIDs identifies surviving resources whose complete // historical version rows could otherwise restore references to a retired // resource. It is present only while planning StepRetireResources. PurgeVersionOwnerIDs []schema.StableID `json:"purgeVersionOwnerIds,omitempty"` // AuthIdentities is present only while planning a // StepCanonicalizeAuthIdentities step. AuthIdentities []AuthIdentityResource `json:"authIdentities,omitempty"` }

One physical or semantic planner operation before checkpointed phases are built.

Source migration/migration.go:201

KindStepKind
Kind selects the runner behavior.
Namestring
Name is a stable, review-friendly operation label.
SQLstring
SQL is present only for StepSQL.
Rename*Rename
Rename is present only for StepRenameContent.
Plugin*PluginStep
Plugin is present only for StepPluginSQL.
ResourceIDs[]schema.StableID
ResourceIDs is present only while planning a StepRetireResources step.
PurgeVersionOwnerIDs[]schema.StableID
PurgeVersionOwnerIDs identifies surviving resources whose complete historical version rows could otherwise restore references to a retired resource. It is present only while planning StepRetireResources.
AuthIdentities[]AuthIdentityResource
AuthIdentities is present only while planning a StepCanonicalizeAuthIdentities step.

Store adapters convert operations into immutable Phase and Step values before writing an artifact.