Skip to content

fix(prisma): reconcile schema drift, indexes, and migration timestamps (#1617) - #1687

Open
Awosdot wants to merge 1 commit into
Junirezz:mainfrom
Awosdot:feature/issue-1617-prisma-schema-migration-reconciliation
Open

Awosdot wants to merge 1 commit into
Junirezz:mainfrom
Awosdot:feature/issue-1617-prisma-schema-migration-reconciliation

Conversation

@Awosdot

@Awosdot Awosdot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Reconciled schema drift on the Transaction model and updated src/vaultEndpoints.ts to align model property access with Prisma definitions[cite: 13].
  • Added @@index([status, nextRetryAt]) to EmailQueue in prisma/schema.prisma and cleaned up redundant index declarations[cite: 13].
  • Created corresponding SQL migration and rollback scripts under prisma/migrations and prisma/rollbacks[cite: 13].
  • Renamed duplicate migration timestamps and disambiguated colliding migration folder names[cite: 13].

Why

Schema field mismatches caused runtime type errors, while missing indexes degraded email queue processing performance[cite: 13]. Duplicate migration folder timestamps broke automated migration tracking in CI[cite: 13].

How tested

  • Ran npx prisma validate and tsc --noEmit to confirm zero schema or TypeScript errors[cite: 13].
  • Verified node scripts/check-migrations.js passes cleanly[cite: 13].

Closes

Closes #1617

@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@Awosdot 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

This branch has not been deployed

No deployments
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.

[backend] Reconcile Prisma schema with migrations (createdAt drift, EmailQueue index, duplicate timestamps)

1 participant