Skip to content

Migrate to Prisma 7 - #2603

Merged
brage-andreas merged 1 commit into
mainfrom
migrate-to-prisma-7
May 10, 2026
Merged

Migrate to Prisma 7#2603
brage-andreas merged 1 commit into
mainfrom
migrate-to-prisma-7

Conversation

@brage-andreas

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

Copy link
Copy Markdown
Member

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

brage-andreas commented Dec 3, 2025

Copy link
Copy Markdown
Member Author

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 (

@brage-andreas brage-andreas Dec 3, 2025

Copy link
Copy Markdown
Member Author

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
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch 2 times, most recently from 26dfc43 to e6c2c4c Compare December 17, 2025 15:02
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch 2 times, most recently from e2f9442 to 83302a1 Compare January 10, 2026 14:29
@brage-andreas
brage-andreas changed the base branch from main to graphite-base/2603 January 10, 2026 15:04
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch 3 times, most recently from f85ce19 to 5c7590b Compare January 19, 2026 14:22
@brage-andreas
brage-andreas changed the base branch from add-untyped-featured-events-route to graphite-base/2603 January 21, 2026 12:01
@brage-andreas
brage-andreas changed the base branch from graphite-base/2603 to main January 21, 2026 12:05
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch 2 times, most recently from dfeb6ac to 1f145f0 Compare February 27, 2026 14:54
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch 2 times, most recently from 08953dc to eaf4336 Compare March 27, 2026 10:43
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch 4 times, most recently from b148746 to 0af8829 Compare March 31, 2026 22:33
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch 2 times, most recently from 2254819 to c25287d Compare April 15, 2026 16:50
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch 6 times, most recently from 96fb1e4 to 1213a6f Compare May 1, 2026 23:01
@brage-andreas
brage-andreas force-pushed the migrate-to-prisma-7 branch from 1213a6f to 3301e7a Compare May 2, 2026 16:58

brage-andreas commented May 10, 2026

Copy link
Copy Markdown
Member Author

Merge activity

  • May 10, 2:37 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • May 10, 2:37 PM UTC: @brage-andreas merged this pull request with Graphite.

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.

1 participant