refactor: sqlite schema

This commit is contained in:
appflowy
2022-06-11 17:13:52 +08:00
parent 7366acb58e
commit bf5247066d
18 changed files with 11 additions and 26 deletions

View File

@ -79,6 +79,7 @@ pub(crate) struct ViewTable {
pub view_type: SqlViewDataType,
pub version: i64,
pub is_trash: bool,
pub ext_data: String,
}
impl ViewTable {
@ -120,7 +121,7 @@ impl std::convert::From<ViewTable> for View {
modified_time: table.modified_time,
version: table.version,
create_time: table.create_time,
ext_data: "".to_string(),
ext_data: table.ext_data,
thumbnail: table.thumbnail,
// Store the view in ViewTable was deprecated since v0.0.2.
// No need worry about plugin_type.