@better-auth/cli 1.2.9-beta.1 → 1.2.9-beta.6
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/index.mjs +2 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -496,6 +496,8 @@ const generateDrizzleSchema = async ({
|
|
|
496
496
|
if (attr.defaultValue) {
|
|
497
497
|
if (typeof attr.defaultValue === "function") {
|
|
498
498
|
type += `.$defaultFn(${attr.defaultValue})`;
|
|
499
|
+
} else if (typeof attr.defaultValue === "string") {
|
|
500
|
+
type += `.default("${attr.defaultValue}")`;
|
|
499
501
|
} else {
|
|
500
502
|
type += `.default(${attr.defaultValue})`;
|
|
501
503
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/cli",
|
|
3
|
-
"version": "1.2.9-beta.
|
|
3
|
+
"version": "1.2.9-beta.6",
|
|
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.9-beta.
|
|
49
|
+
"better-auth": "1.2.9-beta.6"
|
|
50
50
|
},
|
|
51
51
|
"files": [
|
|
52
52
|
"dist"
|