mz_catalog/durable/upgrade/v79_to_v80.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_v79 as v79;
12use crate::durable::upgrade::objects_v80 as v80;
13
14/// No-op migration. All types are JSON-compatible between v79 and v80.
15/// The only change is adding new audit log event types and fields.
16///
17/// There is one exception, `AlterSetClusterV1`, which was changed in an
18/// incompatible way. We can do this only because we know this audit event has
19/// never been written before.
20pub fn upgrade(
21 _snapshot: Vec<v79::StateUpdateKind>,
22) -> Vec<MigrationAction<v79::StateUpdateKind, v80::StateUpdateKind>> {
23 Vec::new()
24}