@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 1.1.0-reverse-references-3805f8e36d11173a85330c6ef23514dcc9dfa863 to 1.1.0-reverse-references-f88906a47a0fab33064a46c5b9d56798f9adf2e0
@@ -10,2 +10,5 @@ # Change Log | ||
* Add support for reverse references using relationships info [Pagan Gazzard] | ||
## 1.0.3 - 2020-12-30 | ||
* Use the referenced field's data type for foreign keys/concept types [Pagan Gazzard] | ||
@@ -12,0 +15,0 @@ |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "1.1.0-reverse-references-3805f8e36d11173a85330c6ef23514dcc9dfa863", | ||
"version": "1.1.0-reverse-references-f88906a47a0fab33064a46c5b9d56798f9adf2e0", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
@@ -150,4 +150,3 @@ import { | ||
return Object.keys(relationships).flatMap((key) => { | ||
// We skip `has` a the top level as we omit it by convention //, and we skip any | ||
// if (key === 'has' || m.tables[key] != null) { | ||
// We skip `has` a the top level as we omit it by convention | ||
if (key === 'has') { | ||
@@ -154,0 +153,0 @@ return []; |
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
23428
570