Skip to content

(fix) use production Prisma migrations during deploy - #20

Merged
Ammaar-Alam merged 1 commit into
mainfrom
fix/production-prisma-migrations
Aug 14, 2026
Merged

(fix) use production Prisma migrations during deploy#20
Ammaar-Alam merged 1 commit into
mainfrom
fix/production-prisma-migrations

Conversation

@Ammaar-Alam

Copy link
Copy Markdown
Member

Summary

  • run Prisma migrations with the production-safe deploy command
  • preserve the existing development migration command for local workflows

Context

The production database contains an applied historical migration that is no longer present in the repository. The deployment script used prisma migrate dev, which treated that history difference as drift and requested a schema reset in the non-interactive deployment job. Prisma migrate deploy accepts the current applied history and safely applies only pending committed migrations.

Validation

  • production Prisma migration status reports the schema is up to date
  • the exact patched command completed against production with no pending migrations
  • backend TypeScript build passed
  • frontend production build passed
  • deployment shell syntax and diff checks passed

(PR written by Codex)

@Ammaar-Alam
Ammaar-Alam marked this pull request as ready for review August 14, 2026 18:46
Copilot AI lite review requested due to automatic review settings August 14, 2026 18:46
@Ammaar-Alam
Ammaar-Alam merged commit c0e54b8 into main Aug 14, 2026
@Ammaar-Alam
Ammaar-Alam deleted the fix/production-prisma-migrations branch August 14, 2026 18:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the production deployment script to run Prisma migrations using the production-safe prisma migrate deploy flow, avoiding drift/reset behavior caused by prisma migrate dev in non-interactive deploy jobs.

Changes:

  • Replaces the deployment-time migration step from pnpm db:migrate (dev-oriented) to prisma migrate deploy executed in the tigerspot-server workspace.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants