type
Rename
Confirmed collection or field identity continuity used during migration planning.
Properties
| Property | Type | Description |
|---|---|---|
Kind | RenameKind | Kind selects collection or field rename planning. |
BeforeCollection | schema.Collection | BeforeCollection is the collection embedded in the previous artifact. |
AfterCollection | schema.Collection | AfterCollection is its collection in current executable config. |
Block | string | Block names the block definition of a block field rename, whose collections are zero and whose fields are the definition's. |
BeforeField | *schema.Field | BeforeField and AfterField are set for a standalone field rename. |
AfterField | *schema.Field | The AfterField value. |
Fields | []FieldRename | Fields contains all physical and nested field pairs for a collection rename. |
Full signature
type Rename struct {
// Kind selects collection or field rename planning.
Kind RenameKind
// BeforeCollection is the collection embedded in the previous artifact.
BeforeCollection schema.Collection
// AfterCollection is its collection in current executable config.
AfterCollection schema.Collection
// Block names the block definition of a block field rename, whose
// collections are zero and whose fields are the definition's.
Block string
// BeforeField and AfterField are set for a standalone field rename.
BeforeField *schema.Field
AfterField *schema.Field
// Fields contains a collection rename's own physical and nested field pairs.
Fields []FieldRename
}