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

Method setSchemaVersion

src/utils/postgresDatabase.js:183–192  ·  view source on GitHub ↗
(version, label)

Source from the content-addressed store, hash-verified

181 }
182
183 async setSchemaVersion(version, label) {
184 const safeMigrationTable = await this.ensureMigrationLedger();
185 await this.pool.query(
186 `INSERT INTO ${safeMigrationTable} (version, label)
187 VALUES ($1, $2)
188 ON CONFLICT (version)
189 DO UPDATE SET label = EXCLUDED.label, applied_at = CURRENT_TIMESTAMP`,
190 [version, label]
191 );
192 }
193
194 async verifySchemaVersion() {
195 const latest = await this.getLatestSchemaVersion();

Callers 1

_establishConnectionMethod · 0.95

Calls 1

ensureMigrationLedgerMethod · 0.95

Tested by

no test coverage detected