@better-auth/cli 1.2.6 → 1.2.7

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -3
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -429,7 +429,7 @@ const generateDrizzleSchema = async ({
429
429
  return `integer({ mode: 'number' }).primaryKey({ autoIncrement: true })`;
430
430
  }
431
431
  }
432
- return databaseType === "pg" ? `uuid('${name}')` : `text('${name}')`;
432
+ return `text('${name}')`;
433
433
  }
434
434
  const type = field.type;
435
435
  const typeMap = {
@@ -476,7 +476,7 @@ const generateDrizzleSchema = async ({
476
476
  if (databaseType === "mysql") {
477
477
  id = `varchar('id', { length: 36 }).primaryKey()`;
478
478
  } else if (databaseType === "pg") {
479
- id = `uuid('id').primaryKey()`;
479
+ id = `text('id').primaryKey()`;
480
480
  } else {
481
481
  id = `text('id').primaryKey()`;
482
482
  }
@@ -513,7 +513,7 @@ function generateImport({
513
513
  );
514
514
  imports.push(`${databaseType}Table`);
515
515
  imports.push(
516
- databaseType === "mysql" ? "varchar, text" : databaseType === "pg" ? "uuid, text" : "text"
516
+ databaseType === "mysql" ? "varchar, text" : databaseType === "pg" ? "text" : "text"
517
517
  );
518
518
  imports.push(hasBigint ? databaseType !== "sqlite" ? "bigint" : "" : "");
519
519
  imports.push(databaseType !== "sqlite" ? "timestamp, boolean" : "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/cli",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "The CLI for Better Auth",
5
5
  "module": "dist/index.mjs",
6
6
  "repository": {
@@ -46,7 +46,7 @@
46
46
  "tinyexec": "^0.3.1",
47
47
  "yocto-spinner": "^0.1.1",
48
48
  "zod": "^3.23.8",
49
- "better-auth": "1.2.6"
49
+ "better-auth": "1.2.7"
50
50
  },
51
51
  "files": [
52
52
  "dist"