diff --git a/scripts/validate-services-migration.ts b/scripts/validate-services-migration.ts index 20fccbb..70bad65 100644 --- a/scripts/validate-services-migration.ts +++ b/scripts/validate-services-migration.ts @@ -99,6 +99,13 @@ async function validate() { console.log("PASS: no duplicate names in services"); } + // Check 6: informational — count of net-new (non-migrated) services + const [netNew] = await db + .select({ n: sql`count(*)::int` }) + .from(services) + .where(sql`migrated_from IS NULL`); + console.log(`INFO: ${netNew.n} net-new services created post-migration (migrated_from IS NULL)`); + console.log(`\n${failures === 0 ? "ALL CHECKS PASSED" : `${failures} CHECK(S) FAILED`}`); process.exit(failures === 0 ? 0 : 1); }