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

Open
opened 2026-03-13 13:49:02 -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: canaryHead: fix/primsa-adapter/json-support


📝 Commits (5)

  • fa7abd1 fix(prisma-adapter): support JSON for postgresql
  • d12b878 Merge branch 'canary' into fix/primsa-adapter/json-support
  • de00696 Update prisma-adapter.ts
  • 6d273c1 Merge branch 'canary' into fix/primsa-adapter/json-support
  • 198fffb Merge branch 'canary' into fix/primsa-adapter/json-support

📊 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:** `canary` ← **Head:** `fix/primsa-adapter/json-support` --- ### 📝 Commits (5) - [`fa7abd1`](https://github.com/better-auth/better-auth/commit/fa7abd163960c6707a0063ff21c0e6190bf35295) fix(prisma-adapter): support JSON for postgresql - [`d12b878`](https://github.com/better-auth/better-auth/commit/d12b878feb523f40742b19ad1db478d4cfaa3ce5) Merge branch 'canary' into fix/primsa-adapter/json-support - [`de00696`](https://github.com/better-auth/better-auth/commit/de00696e37bace74034035384af2e1c58c8722b4) Update prisma-adapter.ts - [`6d273c1`](https://github.com/better-auth/better-auth/commit/6d273c1d8a3fe29491548f6b9654d2375aa21c0b) Merge branch 'canary' into fix/primsa-adapter/json-support - [`198fffb`](https://github.com/better-auth/better-auth/commit/198fffb60f5fa6552786f95eb6c7a8b11800ee4e) Merge branch 'canary' into fix/primsa-adapter/json-support ### 📊 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-03-13 13:49:02 -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#7783