Skip to content

done#98

Open
amina69 wants to merge 1 commit into
Miracle656:mainfrom
amina69:festure/migration/idempotency
Open

done#98
amina69 wants to merge 1 commit into
Miracle656:mainfrom
amina69:festure/migration/idempotency

Conversation

@amina69
Copy link
Copy Markdown

@amina69 amina69 commented Jun 1, 2026

Add integration test for migration idempotency (apply → reset → apply)

Summary: Adds an integration test that runs all Prisma migrations, resets the DB, re-applies migrations, and asserts migration checksum stability to prevent wedged-prod states.

CI notes: Add a CI secret for DIRECT_DATABASE_URL pointing to a disposable test database (one per PR or shared ephemeral). The test will skip if the secret is missing.
Acceptance criteria: All migrations run cleanly and the test passes on CI for every PR; reviewers should confirm CI has the DIRECT_DATABASE_URL secret and the test ran.
Review guidance: Ensure the provided test DB is safe to RESET (this test drops data). If preferred, we can change to using a temporary database name or a disposable ephemeral DB provider.
closes #76
closes #77
closes #39

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@amina69 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! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API contract tests with Dredd Postgres schema migration idempotency tests Add Prometheus /metrics endpoint

2 participants