SerializedSchemaV2
See source codeTable of contents
Version 2 format for serialized store schema information.
This is the current format that uses a unified sequence-based approach for tracking versions across all migration sequences. Each sequence ID maps to the latest version number for that sequence.
interface SerializedSchemaV2 {}Example
const schemaV2: SerializedSchemaV2 = {
schemaVersion: 2,
sequences: {
'com.tldraw.store': 3,
'com.tldraw.book': 2,
'com.tldraw.shape': 4,
'com.tldraw.shape.rectangle': 1,
},
}Properties
schemaVersion
schemaVersion: 2sequences
sequences: {
[sequenceId: string]: number
}Prev
SerializedSchemaV1Next
StandaloneDependsOn