oradm-to-gql 34.1.0-rc → 34.1.1-rc

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oradm-to-gql",
3
- "version": "34.1.0-rc",
3
+ "version": "34.1.1-rc",
4
4
  "description": "Oracle Data Modeler CSV Export to Apollo GraphQL Endpoint Generator",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -134,10 +134,10 @@ module.exports = function (
134
134
  if (attrName == "code") relSpec.onUpdate = "CASCADE";
135
135
  if (!attrDef.nullable || attrDef.referenceShouldCascade === true)
136
136
  relSpec.onDelete = "CASCADE";
137
- // if (attrDef.referenceShouldRestrict === true) {
138
- // relSpec.onDelete = "RESTRICT";
139
- // console.log("DEBUG:relSpec:", relSpec)
140
- // }
137
+ if (attrDef.referenceShouldRestrict === true) {
138
+ relSpec.onDelete = "RESTRICT";
139
+ console.log("DEBUG:relSpec:", relSpec)
140
+ }
141
141
  knexSpec.relationships.push(relSpec);
142
142
  }
143
143