MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / ensureMigrationLedger

Function ensureMigrationLedger

scripts/migrate.js:25–33  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

23}
24
25const ensureMigrationLedger = async (client) => {
26 await client.query(`
27 CREATE TABLE IF NOT EXISTS ${migrationTable} (
28 version INTEGER PRIMARY KEY,
29 label VARCHAR(255) NOT NULL,
30 applied_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
31 )
32 `);
33};
34
35const recordSchemaVersion = async (client) => {
36 await ensureMigrationLedger(client);

Callers 2

recordSchemaVersionFunction · 0.85
getCurrentSchemaVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected