feat(database): add automated migration status check for CI and startup - #149
feat(database): add automated migration status check for CI and startup#149Seunfunmi-319509 wants to merge 4 commits into
Conversation
Implements a migration verification utility that checks if the Prisma schema matches applied database migrations. Adds startup validation in PrismaService and a CI workflow step to verify migration integrity without destructive actions. Closes ASTROIDX556#96 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@Seunfunmi-319509 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
MergeKeeper review Scope: in scope for linked issue Successfully implemented automated Prisma migration status checks for the CI pipeline and NestJS startup sequence with appropriate unit tests. Reviewed commit: |
|
MergeKeeper merge status Status: blocked Reason: Next steps:
|
…k job prisma validate and prisma generate require DATABASE_URL to be set even for schema-only validation. Add a dummy connection string so CI can validate the schema without a real database. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…rtions Fixes @typescript-eslint/no-explicit-any lint errors in migration checker tests by casting mock objects via `as unknown as PrismaClient` instead. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@K1NGD4VID sorry why is it not merging? |
Implemented automated Prisma migration status verification across application startup and the CI pipeline to prevent schema drift and deployment failures.
What was done
Acceptance Criteria
Closes #96