Skip to content

Conversation

@brage-andreas
Copy link
Member

@brage-andreas brage-andreas commented Dec 3, 2025

This PR:

  • Migrates from Prisma 6 to Prisma 7
  • Migrates from zod-prisma-types to prisma-zod-generator
    • This is because the former does not support Prisma 7

To generate types you now need a database URL, meaning that we need to commit both the Prisma types and the generated Zod schemas to run type-check in CI workflows.

@brage-andreas brage-andreas changed the title feat: migrate to Prisma 7 Migrate to Prisma 7 Dec 3, 2025
Copy link
Member Author

brage-andreas commented Dec 3, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@brage-andreas brage-andreas force-pushed the add-featured-event-route branch from 620c201 to dacf300 Compare December 3, 2025 19:25
@brage-andreas brage-andreas changed the base branch from add-featured-event-route to graphite-base/2603 December 3, 2025 19:28
@brage-andreas brage-andreas changed the base branch from graphite-base/2603 to main December 3, 2025 19:28
@brage-andreas brage-andreas marked this pull request as ready for review December 3, 2025 20:59
Comment on lines 46 to 51
if (!auditLog.rowData) {
return null
}

const changed_fields = Object.entries(auditLog.rowData).map(([field, change], index) => {
return (
Copy link
Member Author

@brage-andreas brage-andreas Dec 3, 2025

Choose a reason for hiding this comment

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

This change is actually needed for type inference for some reason

@brage-andreas brage-andreas force-pushed the migrate-to-prisma-7 branch 8 times, most recently from 6e9ae3c to d997de7 Compare December 3, 2025 22:27
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