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

Function assertUniqueNames

apps/cloud/scripts/code-migrations/runner.ts:59–67  ·  view source on GitHub ↗
(migrations: readonly CodeMigration[])

Source from the content-addressed store, hash-verified

57};
58
59const assertUniqueNames = (migrations: readonly CodeMigration[]): void => {
60 const names = new Set<string>();
61 for (const migration of migrations) {
62 if (names.has(migration.name)) {
63 throw new Error(`Duplicate code migration name: ${migration.name}`);
64 }
65 names.add(migration.name);
66 }
67};
68
69const withMigrationLock = async <T>(
70 sql: CodeMigrationSql,

Callers 1

runCodeMigrationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected