function
VersionsEnabled
VersionsEnabled returns the resources of after, collections then globals, that keep versions while the same resource in before does not. renames maps a renamed collection's before stable ID to its after one. Any other resource new in after starts versioned with nothing stored.
Arguments
| Argument | Type | Description |
|---|---|---|
before | schema.Snapshot | The before value. |
after | schema.Snapshot | The after value. |
renames | map[schema.StableID]schema.StableID | The renames value. |
Returns
The declared result.
[]schema.CollectionFull signature
func VersionsEnabled(
before,
after schema.Snapshot,
renames map[schema.StableID]schema.StableID,
) []schema.CollectionRelated types
SnapshotThe serializable application and content schema.
StableIDA deterministic identifier for schema evolution.
CollectionThe resolved contract for a collection.