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