type
ArtifactOptions
ArtifactOptions are the reviewed decisions a SQLite migration records beyond its before and after manifests.
Properties
| Property | Type | Description |
|---|---|---|
AllowDestructive | bool | AllowDestructive accepts planned changes that remove stored data. |
Renames | []migration.Rename | Renames are the confirmed field renames whose content the migration keeps. Apart from them the transition must be additive. |
DataTransforms | []migration.DataTransformDescriptor | DataTransforms are the compiled callbacks the migration runs. They cannot share a migration with renames. |
ExistingDocuments | map[schema.StableID]migration.ExistingDocuments | ExistingDocuments 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
}