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

Function needsMigration

packages/core/src/schema/migrations.ts:52–54  ·  view source on GitHub ↗
(db: DatabaseAdapter, targetVersion: number)

Source from the content-addressed store, hash-verified

50 * 检查数据库是否需要迁移
51 */
52export function needsMigration(db: DatabaseAdapter, targetVersion: number): boolean {
53 return getSchemaVersion(db) < targetVersion
54}
55
56/**
57 * 执行数据库迁移

Callers

nothing calls this directly

Calls 1

getSchemaVersionFunction · 0.85

Tested by

no test coverage detected