MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / hasV1GateStamp

Function hasV1GateStamp

apps/local/src/db/v1-v2-migration.ts:176–183  ·  view source on GitHub ↗
(client: Client)

Source from the content-addressed store, hash-verified

174export const LOCAL_V1_V2_LEDGER_NAME = "2026-06-11-local-v1-to-v2";
175
176const hasV1GateStamp = async (client: Client): Promise<boolean> => {
177 if (!(await tableExists(client, "data_migration"))) return false;
178 return (
179 (await queryFirst(client, "SELECT name FROM data_migration WHERE name = ?", [
180 LOCAL_V1_V2_LEDGER_NAME,
181 ])) != null
182 );
183};
184
185// ---------------------------------------------------------------------------
186// Legacy v1 schema replay.

Callers 1

Calls 2

queryFirstFunction · 0.90
tableExistsFunction · 0.70

Tested by

no test coverage detected