Casing not Working with CLI

My auth.ts looks like this:
import { db } from "$lib/server/db";
import { betterAuth } from "better-auth";

export const auth = betterAuth({
database: {
db: db,
type: "postgres",
casing: "snake",
},
socialProviders: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
prompt: "select_account",
},
microsoft: {
clientId: process.env.MICROSOFT_CLIENT_ID!,
clientSecret: process.env.MICROSOFT_CLIENT_SECRET!,
prompt: "select_account",
},
},
telemetry: {
enabled: false,
},
});
import { db } from "$lib/server/db";
import { betterAuth } from "better-auth";

export const auth = betterAuth({
database: {
db: db,
type: "postgres",
casing: "snake",
},
socialProviders: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
prompt: "select_account",
},
microsoft: {
clientId: process.env.MICROSOFT_CLIENT_ID!,
clientSecret: process.env.MICROSOFT_CLIENT_SECRET!,
prompt: "select_account",
},
},
telemetry: {
enabled: false,
},
});
However, when I generate the migrations, all the column names are coming out as "camel" instead of "snake" case.
1 Reply
Ping
Ping2mo ago
casing does nothing atm

Did you find this page helpful?