26 lines
1.1 KiB
JavaScript
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.
|
|
}
|
|
};
|