Function mz_catalog::durable::upgrade::v67_to_v68::upgrade
source ยท 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:
ItemKey
switched from containing a singleGlobalId
to aCatalogItemId
.ItemValue
addedglobal_id: GlobalId
andextra_versions: BTreeMap<Version, GlobalId>
fields.CommentKey
switched from usingGlobalId
toCatalogItemId
.SourceReferencesKey
switched fromGlobalId
toCatalogItemId
GidMappingValue
switched from using rawuint64
for an id to newtypeSystemCatalogItemId
andSystemGlobalId
wrappers.
All switches from GlobalId
to CatalogItemId
we re-use the inner value of the ID.