[PR #5948] [MERGED] docs: update database docs about generateId #6342

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5948
Author: @ping-maxwell
Created: 11/13/2025
Status: Merged
Merged: 11/13/2025
Merged by: @himself65

Base: canaryHead: docs/update-database-generateId-docs


📝 Commits (2)

  • a52cab5 docs: update database docs about generateId
  • 9287ac2 update: add back old "mixed id types"

📊 Changes

1 file changed (+14 additions, -4 deletions)

View changed files

📝 docs/content/docs/concepts/database.mdx (+14 -4)

📄 Description

We forgot to update database docs when we updated generateId to support serial/uuid.


Summary by cubic

Updates database docs to reflect the new generateId options, including support for serial and uuid, and clarifies when the database should generate IDs. Restores the mixed ID callback section and removes outdated useNumberId references.

  • Refactors
    • Replaced advanced.database.useNumberId with advanced.database.generateId: "serial".
    • Added guidance for advanced.database.generateId: "uuid" (PostgreSQL behavior and CLI schema notes).
    • Clarified that generateId: false lets the database handle ID generation, and restored the mixed ID callback example.

Written for commit 9287ac2156. Summary will update automatically on new commits.


🔄 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/5948 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 11/13/2025 **Status:** ✅ Merged **Merged:** 11/13/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `docs/update-database-generateId-docs` --- ### 📝 Commits (2) - [`a52cab5`](https://github.com/better-auth/better-auth/commit/a52cab5a2d89c7c0be384e9cac531813fbb2f776) docs: update `database` docs about `generateId` - [`9287ac2`](https://github.com/better-auth/better-auth/commit/9287ac21561b8a9bb57c4ef675ad51b0ebc6ca1f) update: add back old "mixed id types" ### 📊 Changes **1 file changed** (+14 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+14 -4) </details> ### 📄 Description We forgot to update database docs when we updated `generateId` to support `serial`/`uuid`. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updates database docs to reflect the new generateId options, including support for serial and uuid, and clarifies when the database should generate IDs. Restores the mixed ID callback section and removes outdated useNumberId references. - **Refactors** - Replaced advanced.database.useNumberId with advanced.database.generateId: "serial". - Added guidance for advanced.database.generateId: "uuid" (PostgreSQL behavior and CLI schema notes). - Clarified that generateId: false lets the database handle ID generation, and restored the mixed ID callback example. <sup>Written for commit 9287ac21561b8a9bb57c4ef675ad51b0ebc6ca1f. Summary will update automatically on new commits.</sup> <!-- 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:55:25 -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#6342