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

ArgumentTypeDescription
beforeschema.SnapshotThe before value.
afterschema.SnapshotThe after value.
renamesmap[schema.StableID]schema.StableIDThe renames value.

Returns

The declared result.

[]schema.Collection

Full signature

Related types

  • Snapshot

    The serializable application and content schema.

  • StableID

    A deterministic identifier for schema evolution.

  • Collection

    The resolved contract for a collection.