src/main/data/migration/v2/migrators/README-NoteMigrator.md
Migrates legacy notes UI state from Redux into the SQLite note table.
notenotesPath, starredPaths, expandedPathsnoterootPath + path| Legacy field | Target field |
|---|---|
notesPath | rootPath |
starredPaths[] | path, isStarred = true |
expandedPaths[] | path, isExpanded = true |
If a path appears in both starred and expanded lists, both flags are preserved in one row.
activeFilePath: not migrated; re-established at runtime in the notes.active_file_path memory Cache.activeNodeId: derived from activeFilePath + notesTree, not migrated.notesPath: also migrated to the feature.notes.path Preference by the Preferences migrator.sortType: migrated to the feature.notes.sort_type Preference by the Preferences migrator.The Markdown files and scanned directory tree remain the source of truth. This migrator only preserves long-lived note row state.