Comparing version 2.1.21 to 2.1.22
@@ -0,1 +1,4 @@ | ||
### v2.1.22 | ||
- Fix ignorecase unique scope for hasOne property (#603) | ||
### v2.1.21 | ||
@@ -2,0 +5,0 @@ - Fix mixed case uniqueness constraint on postgres (#597) |
@@ -78,3 +78,3 @@ var enforce = require("enforce"); | ||
if (opts.ignoreCase === true && ctx.model.properties[prop].type === 'text') { | ||
if (opts.ignoreCase === true && ctx.model.properties[prop] && ctx.model.properties[prop].type === 'text') { | ||
query = util.format('LOWER(%s.%s) LIKE LOWER(?)', | ||
@@ -81,0 +81,0 @@ ctx.driver.query.escapeId(ctx.model.table), ctx.driver.query.escapeId(prop) |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version" : "2.1.21", | ||
"version" : "2.1.22", | ||
"license" : "MIT", | ||
@@ -18,0 +18,0 @@ "homepage" : "http://dresende.github.io/node-orm2", |
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
232900