[PR #4989] [MERGED] fix: add required constraint to slug filed in org plugin #5696

Closed
opened 2026-03-13 12:32:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4989
Author: @bytaesu
Created: 9/30/2025
Status: Merged
Merged: 9/30/2025
Merged by: @himself65

Base: canaryHead: fix/org-plugin-schema-slug


📝 Commits (2)

  • 1aabd7e fix: add required constraint to slug filed in org plugin
  • cbce379 test: update snapshots

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/organization.ts (+1 -0)
📝 packages/cli/test/__snapshots__/schema-mysql-custom.prisma (+1 -1)

📄 Description

This PR has been reopened
https://github.com/better-auth/better-auth/pull/4967


Summary by cubic

Make organization.slug required in the org plugin schema. This prevents creating organizations without a slug and aligns with the unique constraint.


🔄 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/4989 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 9/30/2025 **Status:** ✅ Merged **Merged:** 9/30/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/org-plugin-schema-slug` --- ### 📝 Commits (2) - [`1aabd7e`](https://github.com/better-auth/better-auth/commit/1aabd7eee8401131fabfcb26c6ecb2f3f9dd9e25) fix: add required constraint to slug filed in org plugin - [`cbce379`](https://github.com/better-auth/better-auth/commit/cbce379fedff3a394bc79314e874478a56cef156) test: update snapshots ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+1 -0) 📝 `packages/cli/test/__snapshots__/schema-mysql-custom.prisma` (+1 -1) </details> ### 📄 Description This PR has been reopened https://github.com/better-auth/better-auth/pull/4967 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Make organization.slug required in the org plugin schema. This prevents creating organizations without a slug and aligns with the unique constraint. <!-- End of auto-generated description by cubic. --> --- <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 12:32:06 -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#5696