Skip to main content

migrate

Function migrate 

Source
pub fn migrate(
    scope: Scope<'_>,
    version: u32,
    containers: &[(String, ObjType)],
) -> Result<Change, AutomergeError>
Expand description

The step that brings the record scope names to version, on the chain chain derives: the one change a store admits under the migration verb for that version, and the one every holder writes.

ยงErrors

When the chain cannot be made (chain), or version is no version a record steps to (0).