type
Rename
type Rename struct {
// CollectionBefore and CollectionAfter are current public slugs.
CollectionBefore schema.CollectionSlug `json:"collectionBefore"`
CollectionAfter schema.CollectionSlug `json:"collectionAfter"`
// FieldBefore and FieldAfter are canonical field paths. Empty paths mean the
// rename applies to the collection itself.
FieldBefore string `json:"fieldBefore,omitempty"`
FieldAfter string `json:"fieldAfter,omitempty"`
// Fields records every nested or top-level field path whose identity changed
// as part of a collection rename.
Fields []FieldRename `json:"fields,omitempty"`
}Explicit committed content-identity intent.
Source migration/migration.go:178
CollectionBeforeschema.CollectionSlug- CollectionBefore and CollectionAfter are current public slugs.
CollectionAfterschema.CollectionSlug- The CollectionAfter value.
FieldBeforestring- FieldBefore and FieldAfter are canonical field paths. Empty paths mean the rename applies to the collection itself.
FieldAfterstring- The FieldAfter value.
Fields[]FieldRename- Fields records every nested or top-level field path whose identity changed as part of a collection rename.
Inference may propose a rename, but runners execute only persisted intent. Collection renames include all nested/top-level field identity changes.