[GH-ISSUE #3253] docs: docs/FILE_STORAGE_MIGRATION.md is out of date - storage table map is missing 19 tables #1749

Closed
opened 2026-10-21 05:42:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Jul 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3253

Originally assigned to: @SpicyMarinara on GitHub.

docs/FILE_STORAGE_MIGRATION.md has drifted from the shipped app. Found in a full docs-vs-code audit against v2.1.0. Each item below is independently checkable: open the doc at the noted spot and compare against the app or code. These can all land in one PR that refreshes the file.

1 item found.


1. ## SQLite Surface Map (lines 63-99) and the "Current v1.5.7 layout" framing in ## File Layout (line 46)

(outdated)

The Surface Map reads as the inventory of what lives in DATA_DIR/storage/tables/, but it lists only 33 table files while the current v2.1.0 file store persists 52 - and it was already incomplete at v1.5.7, whose code had 34 tables (the doc omitted lorebook_folders from day one). Nineteen files a user will actually find on disk are undocumented: lorebook_folders (in v1.5.7 code but never listed); persona_card_versions, lorebook_character_links, lorebook_persona_links, api_connection_folders, game_engine_state, persona_images, gallery_folders, global_images, custom_emojis, custom_stickers, achievement_unlocks, installed_extensions (added between v1.5.8 and v2.0.0); and conversation_call_sessions, conversation_call_messages, conversation_call_sounds, game_scene_videos, game_turn_storyboards, game_turn_storyboard_keyframes (added in 2.0.x-2.1.0). This is the only doc in the repo that maps storage/tables/, so a user relying on it for selective backup/restore, manual inspection, or debugging would miss whole domains: conversation calls, extensions, achievements, gallery/emoji/sticker media, and game video/storyboard state.

Suggested fix: Regenerate the map from the current FILE_BACKED_TABLES list in packages/server/src/db/file-backed-store.ts (add the 19 missing rows with short domain descriptions, e.g. conversation_call_* = voice-call sessions/transcripts/sounds, installed_extensions = cross-device extension storage, achievement_unlocks = achievements, gallery_folders/global_images = gallery, game_scene_videos/game_turn_storyboard* = game media state). Retitle the layout and map headings from "v1.5.7" to "v1.5.7+" or "current", with a one-line note that v1.5.7 introduced the layout and later releases only add new table files under storage/tables/. Add a pointer that the FILE_BACKED_TABLES array in packages/server/src/db/file-backed-store.ts is the authoritative list.

Originally created by @kolacheee on GitHub (Jul 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3253 Originally assigned to: @SpicyMarinara on GitHub. `docs/FILE_STORAGE_MIGRATION.md` has drifted from the shipped app. Found in a full docs-vs-code audit against **v2.1.0**. Each item below is independently checkable: open the doc at the noted spot and compare against the app or code. These can all land in one PR that refreshes the file. **1 item found.** --- ### 1. ## SQLite Surface Map (lines 63-99) and the "Current v1.5.7 layout" framing in ## File Layout (line 46) *(outdated)* The Surface Map reads as the inventory of what lives in DATA_DIR/storage/tables/, but it lists only 33 table files while the current v2.1.0 file store persists 52 - and it was already incomplete at v1.5.7, whose code had 34 tables (the doc omitted lorebook_folders from day one). Nineteen files a user will actually find on disk are undocumented: lorebook_folders (in v1.5.7 code but never listed); persona_card_versions, lorebook_character_links, lorebook_persona_links, api_connection_folders, game_engine_state, persona_images, gallery_folders, global_images, custom_emojis, custom_stickers, achievement_unlocks, installed_extensions (added between v1.5.8 and v2.0.0); and conversation_call_sessions, conversation_call_messages, conversation_call_sounds, game_scene_videos, game_turn_storyboards, game_turn_storyboard_keyframes (added in 2.0.x-2.1.0). This is the only doc in the repo that maps storage/tables/, so a user relying on it for selective backup/restore, manual inspection, or debugging would miss whole domains: conversation calls, extensions, achievements, gallery/emoji/sticker media, and game video/storyboard state. **Suggested fix:** Regenerate the map from the current FILE_BACKED_TABLES list in packages/server/src/db/file-backed-store.ts (add the 19 missing rows with short domain descriptions, e.g. conversation_call_* = voice-call sessions/transcripts/sounds, installed_extensions = cross-device extension storage, achievement_unlocks = achievements, gallery_folders/global_images = gallery, game_scene_videos/game_turn_storyboard* = game media state). Retitle the layout and map headings from "v1.5.7" to "v1.5.7+" or "current", with a one-line note that v1.5.7 introduced the layout and later releases only add new table files under storage/tables/. Add a pointer that the FILE_BACKED_TABLES array in packages/server/src/db/file-backed-store.ts is the authoritative list.
bsakaguchi 2026-10-21 05:42:17 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 5, 2026):

Addressed in #3289.

<!-- gh-comment-id:4887421302 --> @SpicyMarinara commented on GitHub (Jul 5, 2026): Addressed in #3289.
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
Pasta-Devs/Marinara-Engine#1749
No description provided.