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

Function recordMigration

src/db/migrations.ts:173–177  ·  view source on GitHub ↗

* Record a migration as applied

(db: SqliteDatabase, version: number, description: string)

Source from the content-addressed store, hash-verified

171 * Record a migration as applied
172 */
173function recordMigration(db: SqliteDatabase, version: number, description: string): void {
174 db.prepare(
175 'INSERT INTO schema_versions (version, applied_at, description) VALUES (?, ?, ?)'
176 ).run(version, Date.now(), description);
177}
178
179/**
180 * Run all pending migrations

Callers 1

runMigrationsFunction · 0.85

Calls 2

runMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected