MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getPendingMigrations

Function getPendingMigrations

src/db/migrations.ts:212–217  ·  view source on GitHub ↗
(db: SqliteDatabase)

Source from the content-addressed store, hash-verified

210 * Get list of pending migrations
211 */
212export function getPendingMigrations(db: SqliteDatabase): Migration[] {
213 const current = getCurrentVersion(db);
214 return migrations
215 .filter((m) => m.version > current)
216 .sort((a, b) => a.version - b.version);
217}
218
219/**
220 * Get migration history from database

Callers

nothing calls this directly

Calls 1

getCurrentVersionFunction · 0.85

Tested by

no test coverage detected