[PR #654] [MERGED] Add snapshot db schema (WIP) #4260

Closed
opened 2026-03-23 21:37:02 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/654
Author: @appflowy
Created: 7/20/2022
Status: Merged
Merged: 7/20/2022
Merged by: @appflowy

Base: mainHead: feat/snapshot_db_schema


📝 Commits (6)

  • ab63ce7 chore: rename structs
  • f6ade11 chore: config revision history
  • aeb69f3 chore: write checkpoint in fixed duration
  • d5eabe4 chore: add snapshot
  • 1e3c69f Merge branch 'main' into feat/history
  • cb1afac chore: rename some structs

📊 Changes

29 files changed (+1685 additions, -97 deletions)

View changed files

frontend/rust-lib/flowy-database/migrations/2022-06-10-140131_revision-snapshot/down.sql (+2 -0)
frontend/rust-lib/flowy-database/migrations/2022-06-10-140131_revision-snapshot/up.sql (+7 -0)
📝 frontend/rust-lib/flowy-database/src/schema.rs (+10 -0)
📝 frontend/rust-lib/flowy-folder/src/manager.rs (+16 -4)
📝 frontend/rust-lib/flowy-folder/src/services/folder_editor.rs (+2 -6)
📝 frontend/rust-lib/flowy-folder/src/services/persistence/migration.rs (+1 -1)
📝 frontend/rust-lib/flowy-grid/src/manager.rs (+25 -30)
📝 frontend/rust-lib/flowy-grid/src/services/block_manager.rs (+8 -6)
📝 frontend/rust-lib/flowy-grid/src/services/block_revision_editor.rs (+6 -9)
📝 frontend/rust-lib/flowy-grid/src/services/grid_editor.rs (+2 -5)
frontend/rust-lib/flowy-grid/tests/grid/grid_test.rs (+381 -0)
frontend/rust-lib/flowy-grid/tests/grid/script.rs (+374 -0)
📝 frontend/rust-lib/flowy-revision/src/cache/disk/grid_block_meta_rev_impl.rs (+3 -4)
📝 frontend/rust-lib/flowy-revision/src/cache/disk/grid_rev_impl.rs (+0 -1)
📝 frontend/rust-lib/flowy-revision/src/cache/disk/mod.rs (+2 -2)
frontend/rust-lib/flowy-revision/src/history/mod.rs (+5 -0)
frontend/rust-lib/flowy-revision/src/history/persistence.rs (+78 -0)
frontend/rust-lib/flowy-revision/src/history/rev_history.rs (+201 -0)
📝 frontend/rust-lib/flowy-revision/src/lib.rs (+4 -0)
📝 frontend/rust-lib/flowy-revision/src/rev_manager.rs (+29 -10)

...and 9 more files

📄 Description

  1. rename some structs
  2. add snapshot schema

Snapshot is not finished yet, just merge into the main in case of conflict.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/654 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 7/20/2022 **Status:** ✅ Merged **Merged:** 7/20/2022 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `feat/snapshot_db_schema` --- ### 📝 Commits (6) - [`ab63ce7`](https://github.com/AppFlowy-IO/AppFlowy/commit/ab63ce7bce2c50270a06e1bbf37d201491b10373) chore: rename structs - [`f6ade11`](https://github.com/AppFlowy-IO/AppFlowy/commit/f6ade11eb2a4fc00b20fbd609fdb963218a7a403) chore: config revision history - [`aeb69f3`](https://github.com/AppFlowy-IO/AppFlowy/commit/aeb69f307c09f8d98f01544270d4b40a785a12f6) chore: write checkpoint in fixed duration - [`d5eabe4`](https://github.com/AppFlowy-IO/AppFlowy/commit/d5eabe4ea3ac74aa033c2721664ae3ab882a7906) chore: add snapshot - [`1e3c69f`](https://github.com/AppFlowy-IO/AppFlowy/commit/1e3c69f15b8f9d038dd574369f4b3643c6da0633) Merge branch 'main' into feat/history - [`cb1afac`](https://github.com/AppFlowy-IO/AppFlowy/commit/cb1afacbd6f9f85e45ba9f9dcef3c7f3a4eeb1b6) chore: rename some structs ### 📊 Changes **29 files changed** (+1685 additions, -97 deletions) <details> <summary>View changed files</summary> ➕ `frontend/rust-lib/flowy-database/migrations/2022-06-10-140131_revision-snapshot/down.sql` (+2 -0) ➕ `frontend/rust-lib/flowy-database/migrations/2022-06-10-140131_revision-snapshot/up.sql` (+7 -0) 📝 `frontend/rust-lib/flowy-database/src/schema.rs` (+10 -0) 📝 `frontend/rust-lib/flowy-folder/src/manager.rs` (+16 -4) 📝 `frontend/rust-lib/flowy-folder/src/services/folder_editor.rs` (+2 -6) 📝 `frontend/rust-lib/flowy-folder/src/services/persistence/migration.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-grid/src/manager.rs` (+25 -30) 📝 `frontend/rust-lib/flowy-grid/src/services/block_manager.rs` (+8 -6) 📝 `frontend/rust-lib/flowy-grid/src/services/block_revision_editor.rs` (+6 -9) 📝 `frontend/rust-lib/flowy-grid/src/services/grid_editor.rs` (+2 -5) ➕ `frontend/rust-lib/flowy-grid/tests/grid/grid_test.rs` (+381 -0) ➕ `frontend/rust-lib/flowy-grid/tests/grid/script.rs` (+374 -0) 📝 `frontend/rust-lib/flowy-revision/src/cache/disk/grid_block_meta_rev_impl.rs` (+3 -4) 📝 `frontend/rust-lib/flowy-revision/src/cache/disk/grid_rev_impl.rs` (+0 -1) 📝 `frontend/rust-lib/flowy-revision/src/cache/disk/mod.rs` (+2 -2) ➕ `frontend/rust-lib/flowy-revision/src/history/mod.rs` (+5 -0) ➕ `frontend/rust-lib/flowy-revision/src/history/persistence.rs` (+78 -0) ➕ `frontend/rust-lib/flowy-revision/src/history/rev_history.rs` (+201 -0) 📝 `frontend/rust-lib/flowy-revision/src/lib.rs` (+4 -0) 📝 `frontend/rust-lib/flowy-revision/src/rev_manager.rs` (+29 -10) _...and 9 more files_ </details> ### 📄 Description 1. rename some structs 2. add snapshot schema Snapshot is not finished yet, just merge into the main in case of conflict. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 21:37:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#4260
No description provided.