Skip to content

Commit

Permalink
[migrate] replace Questionnaire model with Question field
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Nov 27, 2023
1 parent 66bd5a4 commit a4ab329
Show file tree
Hide file tree
Showing 6 changed files with 465 additions and 573 deletions.
16 changes: 10 additions & 6 deletions src/api/activity/content-types/activity/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@
"target": "api::enrollment.enrollment",
"mappedBy": "activity"
},
"questionnaire": {
"type": "relation",
"relation": "oneToOne",
"target": "api::questionnaire.questionnaire",
"mappedBy": "activity"
},
"cooperations": {
"displayName": "Cooperation",
"type": "component",
Expand All @@ -204,6 +198,16 @@
"relation": "oneToMany",
"target": "api::message.message",
"mappedBy": "activity"
},
"questions": {
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "form.field"
}
}
}
37 changes: 0 additions & 37 deletions src/api/questionnaire/content-types/questionnaire/schema.json

This file was deleted.

9 changes: 0 additions & 9 deletions src/api/questionnaire/controllers/questionnaire.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/api/questionnaire/routes/questionnaire.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/api/questionnaire/services/questionnaire.ts

This file was deleted.

Loading

0 comments on commit a4ab329

Please sign in to comment.