type

ArtifactOptions

ArtifactOptions are the reviewed decisions a PostgreSQL migration records beyond its before and after manifests.

Properties

PropertyTypeDescription
AllowDestructiveboolAllowDestructive accepts planned changes that remove stored data.
Renames[]RenameRenames are the confirmed renames whose content the migration keeps.
DataTransforms[]migration.DataTransformDescriptorDataTransforms are the compiled callbacks the migration runs.
ExistingDocumentsmap[schema.StableID]migration.ExistingDocumentsExistingDocuments says, for each resource that starts keeping versions, what becomes of the documents it already stores.

Full signature

type ArtifactOptions struct { // AllowDestructive accepts planned changes that remove stored data. AllowDestructive bool // Renames are the confirmed renames whose content the migration keeps. Renames []Rename // DataTransforms are the compiled callbacks the migration runs. DataTransforms []ridumigration.DataTransformDescriptor // ExistingDocuments says, for each resource that starts keeping versions, // what becomes of the documents it already stores. ExistingDocuments map[schema.StableID]ridumigration.ExistingDocuments }

Source adapters/postgres/atlas_migration.go:45