Skip to content

Commit

Permalink
Merge pull request #144 from Vizzuality/temporarily_add_back_1-1_reso…
Browse files Browse the repository at this point in the history
…urce_type

Temporarily add back 1-1 relationship for backwards compatibility
  • Loading branch information
Agnieszka Figiel authored Jan 19, 2024
2 parents 9184754 + db925fe commit 7c68b20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cms/src/api/data-tool/content-types/data-tool/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"target": "api::data-tool-language.data-tool-language",
"mappedBy": "data_tool"
},
"data_tool_resource_type": {
"type": "relation",
"relation": "oneToOne",
"target": "api::data-tool-resource-type.data-tool-resource-type"
},
"data_tool_resource_types": {
"type": "relation",
"relation": "oneToMany",
Expand Down
5 changes: 5 additions & 0 deletions cms/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,11 @@ export interface ApiDataToolDataTool extends Schema.CollectionType {
'oneToMany',
'api::data-tool-language.data-tool-language'
>;
data_tool_resource_type: Attribute.Relation<
'api::data-tool.data-tool',
'oneToOne',
'api::data-tool-resource-type.data-tool-resource-type'
>;
data_tool_resource_types: Attribute.Relation<
'api::data-tool.data-tool',
'oneToMany',
Expand Down

0 comments on commit 7c68b20

Please sign in to comment.