function

CreateArtifact

func CreateArtifact( ctx context.Context, directory, name string, after schema.Manifest, now time.Time, ) (CreatedArtifact, error)

Publish an artifact with the frozen legacy MongoDB planner 1.0.0 creator.

Source adapters/mongodb/migrations.go:81

@param ctx
The ctx value.
@param directory
The directory value.
@param name
The name value.
@param after
The after value.
@param now
The now value.
@returns
The declared result.

This legacy-v1 entry point remains only for existing direct callers and immutable-history compatibility. New application and CLI-facing migrations use CreateArtifactWithOptions and planner 2.0.0.

Planning is offline and never receives a database URL, secret, or live MongoDB state.

Related types

  • Manifest

    An immutable versioned schema contract.

  • CreatedArtifact

    The stable filesystem identity of one newly published artifact.