better-auth 0.2.5-beta.2 → 0.2.5-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle.js +1 -1
- package/package.json +1 -1
package/dist/adapters/drizzle.js
CHANGED
|
@@ -267,7 +267,7 @@ var drizzleAdapter = (db, options) => {
|
|
|
267
267
|
let code = `import { ${databaseType}Table, text, ${int}, ${timestampAndBoolean} } from "drizzle-orm/${databaseType}-core";
|
|
268
268
|
`;
|
|
269
269
|
const fileExist = existsSync(filePath);
|
|
270
|
-
let fileContent = await fs.readFile(filePath, "utf-8");
|
|
270
|
+
let fileContent = fileExist ? await fs.readFile(filePath, "utf-8") : "";
|
|
271
271
|
for (const table in tables) {
|
|
272
272
|
let getType2 = function(name, type) {
|
|
273
273
|
if (type === "string") {
|