[PR #8152] fix(prisma-adapter): support JSON for postgresql #24683

Open
opened 2026-04-15 22:30:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8152
Author: @ping-maxwell
Created: 2/25/2026
Status: 🔄 Open

Base: mainHead: fix/primsa-adapter/json-support


📝 Commits (2)

  • d2f8118 fix(prisma-adapter): support JSON for postgresql
  • c835169 Update prisma-adapter.ts

📊 Changes

1 file changed (+35 additions, -0 deletions)

View changed files

📝 packages/prisma-adapter/src/prisma-adapter.ts (+35 -0)

📄 Description

Previously we didn't support JSON on PG for prisma while other adapters did. This PR fixes this, and adds backward compatability for existing users who stored strings in a json field.

e2e unit tests are in this pr: https://github.com/better-auth/better-auth/pull/8151


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/8152 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 2/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/primsa-adapter/json-support` --- ### 📝 Commits (2) - [`d2f8118`](https://github.com/better-auth/better-auth/commit/d2f8118753c3ac21dd7f45bcd1614f28ca976b25) fix(prisma-adapter): support JSON for postgresql - [`c835169`](https://github.com/better-auth/better-auth/commit/c83516998ae5a547a024ef9ff412ade2e9a0b765) Update prisma-adapter.ts ### 📊 Changes **1 file changed** (+35 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/prisma-adapter/src/prisma-adapter.ts` (+35 -0) </details> ### 📄 Description Previously we didn't support JSON on PG for prisma while other adapters did. This PR fixes this, and adds backward compatability for existing users who stored strings in a json field. e2e unit tests are in this pr: https://github.com/better-auth/better-auth/pull/8151 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:30:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#24683