Skip to content

Commit d053389

Browse files
authored
fix: specify alias to deserialize to be compatible with old stored data (#406)
1 parent 11268e0 commit d053389

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/base/schema.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ pub enum TableKind {
120120
/// An table with unordered rows, without key.
121121
UTable,
122122
/// A table's first field is the key.
123+
#[serde(alias = "Table")]
123124
KTable,
124125
/// A table whose rows orders are preserved.
126+
#[serde(alias = "List")]
125127
LTable,
126128
}
127129

0 commit comments

Comments
 (0)