Files
yourpart3/backend/migrations-active/20260904000001-repair-bisaya-kitchen-dialog.cjs
Torsten Schulz (local) 86f3b4c247
All checks were successful
Deploy to production / deploy (push) Successful in 3m27s
feat(bisaya): update kitchen dialog exercise and add migration for alignment
2026-09-04 16:07:49 +02:00

26 lines
1.1 KiB
JavaScript

'use strict';
/** Aligns the question "Where are they?" with its stored kitchen answer. */
module.exports = {
async up(queryInterface) {
await queryInterface.sequelize.query(`
UPDATE community.vocab_grammar_exercise AS exercise
SET title = 'Personen in der Küche',
instruction = 'Jemand fragt, wo die Personen sind. Antworte, dass sie in der Küche sind.',
question_data = '{"type":"dialog_completion","question":"Welche Antwort passt?","dialog":["A: Asa sila?","B: ..."]}'::jsonb,
answer_data = '{"modelAnswer":"Naa sila sa kusina.","correct":["Naa sila sa kusina.","Naa sila sa kusina"]}'::jsonb,
explanation = '„Asa sila?“ fragt: Wo sind sie? „Naa sila sa kusina.“ bedeutet: Sie sind in der Küche.'
FROM community.vocab_course_lesson AS lesson
WHERE exercise.lesson_id = lesson.id
AND lesson.lesson_number = 12
AND lesson.title = 'Haus & Familie'
AND exercise.exercise_number = 13
AND exercise.title = 'Nach der Küche fragen';
`);
},
async down() {
// Do not restore the semantically mismatched dialogue.
}
};