[PR #5948] docs: update database docs about generateId #14589

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

Original Pull Request: https://github.com/better-auth/better-auth/pull/5948

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5948 **State:** closed **Merged:** Yes --- 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. -->
GiteaMirror added the pull-request label 2026-04-13 09:32:12 -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#14589