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

Function recordMigration

src/db/migrations.ts:338–342  ·  view source on GitHub ↗

* Record a migration as applied

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

Source from the content-addressed store, hash-verified

336 * Record a migration as applied
337 */
338function recordMigration(db: SqliteDatabase, version: number, description: string): void {
339 db.prepare(
340 'INSERT INTO schema_versions (version, applied_at, description) VALUES (?, ?, ?)'
341 ).run(version, Date.now(), description);
342}
343
344/**
345 * Run all pending migrations

Callers 1

runMigrationsFunction · 0.85

Calls 2

runMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected