type

ArtifactOptions

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

Properties

PropertyTypeDescription
AllowDestructiveboolAllowDestructive accepts planned changes that remove stored data.
Renames[]migration.RenameRenames are the confirmed field renames whose content the migration keeps. Apart from them the transition must be additive.
DataTransforms[]migration.DataTransformDescriptorDataTransforms are the compiled callbacks the migration runs. They cannot share a migration with renames.
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 field renames whose content the migration // keeps. Apart from them the transition must be additive. Renames []ridumigration.Rename // DataTransforms are the compiled callbacks the migration runs. They // cannot share a migration with renames. 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/sqlite/migrations.go:94