refactor: make casing for column names consistent (#1517)

* refactor: make casing for column names consistent

* fix: format issues
This commit is contained in:
Meier Lukas
2024-11-23 17:17:00 +01:00
committed by GitHub
parent 32ee9f3dcc
commit 8fea983c2e
15 changed files with 3678 additions and 275 deletions

View File

@@ -6,7 +6,7 @@ import { schema } from "..";
export const createDb = (debug?: boolean) => {
const sqlite = new Database(":memory:");
const db = drizzle(sqlite, { schema, logger: debug });
const db = drizzle(sqlite, { schema, logger: debug, casing: "snake_case" });
migrate(db, {
migrationsFolder: "./packages/db/migrations/sqlite",
});

View File

@@ -22,6 +22,7 @@ describe("Mysql Migration", () => {
const database = drizzle(connection, {
schema: mysqlSchema,
mode: "default",
casing: "snake_case",
});
// Run migrations and check if it works