MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getAppliedMigrations

Function getAppliedMigrations

server/src/db/migrate.ts:111–119  ·  view source on GitHub ↗

* Get list of applied migrations with filenames

()

Source from the content-addressed store, hash-verified

109 * Get list of applied migrations with filenames
110 */
111async function getAppliedMigrations(): Promise<Array<{ version: number; filename: string }>> {
112 const pool = getPool();
113
114 const result = await pool.query<{ version: number; filename: string }>(
115 "SELECT version, filename FROM schema_migrations ORDER BY version"
116 );
117
118 return result.rows;
119}
120
121/**
122 * Apply a single migration

Callers 1

runMigrationsFunction · 0.85

Calls 1

getPoolFunction · 0.85

Tested by

no test coverage detected