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

Function createMigrationsTable

server/src/db/migrate.ts:96–106  ·  view source on GitHub ↗

* Create migrations tracking table

()

Source from the content-addressed store, hash-verified

94 * Create migrations tracking table
95 */
96async function createMigrationsTable(): Promise<void> {
97 const pool = getPool();
98
99 await pool.query(`
100 CREATE TABLE IF NOT EXISTS schema_migrations (
101 version INTEGER PRIMARY KEY,
102 filename VARCHAR(255) NOT NULL,
103 applied_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
104 );
105 `);
106}
107
108/**
109 * Get list of applied migrations with filenames

Callers 1

runMigrationsFunction · 0.85

Calls 2

getPoolFunction · 0.85
queryMethod · 0.80

Tested by

no test coverage detected