Comparing version 0.1.24 to 0.1.25
{ | ||
"name": "remult", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "remult core lib", | ||
@@ -5,0 +5,0 @@ "homepage": "https://remult.github.io/", |
@@ -24,4 +24,10 @@ "use strict"; | ||
result += " boolean" + (x.allowNull ? "" : " default false not null"); | ||
else if (x.valueConverter.fieldTypeInDb) { | ||
result += " " + x.valueConverter.fieldTypeInDb; | ||
if (!x.allowNull && x.valueConverter.fieldTypeInDb == 'integer') { | ||
result += " default 0 not null"; | ||
} | ||
} | ||
else | ||
result += " varchar" + (x.allowNull ? "" : " default '' not null "); | ||
result += " varchar" + (x.allowNull ? "" : " default '' not null"); | ||
return result; | ||
@@ -28,0 +34,0 @@ } |
@@ -139,3 +139,3 @@ "use strict"; | ||
if (this.info.isNumeric) { | ||
this.fieldTypeInDb = 'int'; | ||
this.fieldTypeInDb = 'integer'; | ||
} | ||
@@ -142,0 +142,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
577916
6508
8762
23