MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getPendingMigrationInfos

Function getPendingMigrationInfos

apps/desktop/main/database/migrations.ts:116–128  ·  view source on GitHub ↗
(fromVersion = 0)

Source from the content-addressed store, hash-verified

114 * Get pending migration info for UI display (with i18n).
115 */
116export function getPendingMigrationInfos(fromVersion = 0): MigrationInfo[] {
117 const migrations = getChatDbMigrations({ tokenizeForFts })
118 return migrations
119 .filter((m) => m.version > fromVersion)
120 .map((m) => {
121 const keys = i18nKeys[m.version]
122 return {
123 version: m.version,
124 description: (keys && t(keys.descriptionKey)) || m.description,
125 userMessage: (keys && t(keys.userMessageKey)) || m.description,
126 }
127 })
128}

Callers 2

migrations.test.tsFile · 0.90
registerChatHandlersFunction · 0.90

Calls 2

getChatDbMigrationsFunction · 0.90
tFunction · 0.90

Tested by

no test coverage detected