mz_catalog/durable/upgrade/v85_to_v86.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_v85 as v85;
12use crate::durable::upgrade::objects_v86 as v86;
13
14/// No-op migration. All types are JSON-compatible between v85 and v86.
15/// The only changes are adding the new `ClusterSystemConfiguration` and
16/// `ReplicaSystemConfiguration` collections (and their `StateUpdateKind`
17/// variants) that back scoped feature flags. No existing data is rewritten.
18pub fn upgrade(
19 _snapshot: Vec<v85::StateUpdateKind>,
20) -> Vec<MigrationAction<v85::StateUpdateKind, v86::StateUpdateKind>> {
21 Vec::new()
22}