test(db): verify upgrade paths against the schema contract

This commit is contained in:
ciat-777
2026-03-14 23:37:25 +08:00
parent af6bd86e23
commit 627b04d456
7 changed files with 1512 additions and 45 deletions
+1
View File
@@ -45,6 +45,7 @@
"schema:generate": "npm run db:generate && npm run schema:contract",
"test:schema:unit": "vitest run --root . src/server/db/schemaContract.test.ts src/server/db/schemaArtifactGenerator.test.ts src/server/db/schemaIntrospection.test.ts src/server/db/schemaParity.test.ts",
"test:schema:parity": "vitest run --root . src/server/db/schemaParity.live.test.ts",
"test:schema:upgrade": "vitest run --root . src/server/db/schemaUpgrade.live.test.ts",
"smoke:db": "tsx scripts/dev/db-smoke.ts",
"smoke:db:sqlite": "tsx scripts/dev/db-smoke.ts --db-type sqlite",
"smoke:db:mysql": "tsx scripts/dev/db-smoke.ts --db-type mysql",