MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / getExecutedMigrations

Function getExecutedMigrations

migrate-db.ts:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17async function getExecutedMigrations(): Promise<Set<string>> {
18 const executedMigrations = new Set(
19 Array.from(
20 (await db.query<Migration>(sql`SELECT * FROM "bewcloud_migrations" ORDER BY "name" ASC`)).map((migration) =>
21 migration.name
22 ),
23 ),
24 );
25
26 return executedMigrations;
27}
28
29async function getMissingMigrations(): Promise<string[]> {
30 const existingMigrations: Set<string> = new Set();

Callers 1

getMissingMigrationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected