Skip to content

fix: remove explicit fieldName override to restore snake_case column …#27

Merged
cb-alish merged 1 commit into
mainfrom
release/v1.0.0-beta.5
Mar 18, 2026
Merged

fix: remove explicit fieldName override to restore snake_case column …#27
cb-alish merged 1 commit into
mainfrom
release/v1.0.0-beta.5

Conversation

@cb-alish

Copy link
Copy Markdown
Contributor

v1.0.0-beta.5 (2026-03-18)


Bug:

  • Fixed chargebeeCustomerId column naming. The field definition in both userSchema and orgSchema had an explicit fieldName: "chargebeeCustomerId" that overrode Better Auth's built-in camelCase→snake_case mapping, causing the column to be created as chargebeeCustomerId instead of the expected chargebee_customer_id. The explicit override has been removed so Better Auth's automatic mapping applies correctly.

…naming

The chargebeeCustomerId field in userSchema and orgSchema had a hardcoded
fieldName: "chargebeeCustomerId" that suppressed Better Auth's built-in
camelCase→snake_case mapping, causing the column to be created as
chargebeeCustomerId instead of chargebee_customer_id. Removing the override
lets Better Auth's automatic mapping apply correctly.

Bumps version to v1.0.0-beta.5.

Made-with: Cursor
@snyk-io

snyk-io Bot commented Mar 18, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cb-alish cb-alish merged commit 072d4aa into main Mar 18, 2026
6 checks passed
@cb-alish cb-alish deleted the release/v1.0.0-beta.5 branch March 18, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants