fix: change default drizzle output file to auth-schema

This commit is contained in:
Bereket Engida
2024-10-01 09:48:42 +03:00
parent 9c404b38b4
commit cf2f973ec0

View File

@@ -134,7 +134,7 @@ export const drizzleAdapter = (
},
async createSchema(options, file) {
const tables = getAuthTables(options);
const filePath = file || "./schema.ts";
const filePath = file || "./auth-schema.ts";
const timestampAndBoolean =
databaseType !== "sqlite" ? "timestamp, boolean" : "";
const int = databaseType === "mysql" ? "int" : "integer";