pub fn upgrade(
snapshot: Vec<StateUpdateKind>,
) -> Vec<MigrationAction<StateUpdateKind, StateUpdateKind>>Expand description
In v68 we switched catalog items to be keyed on a CatalogItemId, this required a few changes:
ItemKeyswitched from containing a singleGlobalIdto aCatalogItemId.ItemValueaddedglobal_id: GlobalIdandextra_versions: BTreeMap<Version, GlobalId>fields.CommentKeyswitched from usingGlobalIdtoCatalogItemId.SourceReferencesKeyswitched fromGlobalIdtoCatalogItemIdGidMappingValueswitched from using rawuint64for an id to newtypeSystemCatalogItemIdandSystemGlobalIdwrappers.
All switches from GlobalId to CatalogItemId we re-use the inner value of the ID.