function

BuildArtifact

func BuildArtifact( ctx context.Context, name string, before *schema.Manifest, after schema.Manifest, renames []Rename, allowDestructive bool, ) (ridumigration.Artifact, error)

Use embedded Atlas planning plus confirmed semantic rename intent to build an immutable migration artifact.

Source adapters/postgres/atlas_migration.go:38

@param ctx
The ctx value.
@param name
The name value.
@param before
The before value.
@param after
The after value.
@param renames
The renames value.
@param allowDestructive
The allowDestructive value.
@returns
The declared result.

allowDestructive admits reviewed Atlas-confirmed destructive work; some unsafe semantic transitions still fail closed. Prefer ridu migrate create, which records and reviews this contract.

Related types

  • Manifest

    An immutable versioned schema contract.

  • Rename

    Confirmed collection or field identity continuity used during migration planning.

  • Artifact

    The immutable definition of one migration.