Skip to main content

upgrade

Function upgrade 

Source
pub fn upgrade(
    _snapshot: Vec<StateUpdateKind>,
) -> Vec<MigrationAction<StateUpdateKind, StateUpdateKind>>
Expand description

No-op migration. v91->v92 only adds a MetricSink variant to four existing enums: CatalogItemType, ObjectType, CommentObject, and the audit log’s ObjectType. Nothing already stored can be using a variant that didn’t exist, so every v91 record reads back as valid v92.

Metric sinks get no durable record of their own. They are ordinary Items, and durable::objects::item_type works out the type from create_sql.