mz_catalog/durable/upgrade/v87_to_v88.rs
1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10use crate::durable::upgrade::MigrationAction;
11use crate::durable::upgrade::objects_v87 as v87;
12use crate::durable::upgrade::objects_v88 as v88;
13
14/// No-op migration. Every v87->v88 change is additive and confined to the
15/// append-only audit log: new `CreateOrDropClusterReplicaReasonV1` reasons
16/// (`Reconfiguration`, `HydrationBurst`, `Retired`) and new
17/// `AlterClusterReconfigurationV1` / `ClusterHydrationBurstV1` event details.
18/// No existing record changes shape, so a v87-serialized record is already
19/// valid v88 and nothing is rewritten.
20pub fn upgrade(
21 _snapshot: Vec<v87::StateUpdateKind>,
22) -> Vec<MigrationAction<v87::StateUpdateKind, v88::StateUpdateKind>> {
23 Vec::new()
24}