()
| 15 | } |
| 16 | |
| 17 | async 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 | |
| 29 | async function getMissingMigrations(): Promise<string[]> { |
| 30 | const existingMigrations: Set<string> = new Set(); |
no outgoing calls
no test coverage detected