Files
yourpart3/backend/migrations-active/20261027000000-remove-srs-task-prompt.cjs
Torsten Schulz (local) 79c0a87647
All checks were successful
Deploy to production / deploy (push) Successful in 2m41s
fix(vocab): exclude writing tasks from SRS
2026-10-27 14:31:00 +01:00

17 lines
460 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use strict';
/** Removes a task instruction accidentally persisted as an SRS vocabulary card. */
module.exports = {
async up(queryInterface) {
await queryInterface.sequelize.query(`
DELETE FROM community.vocab_srs_item
WHERE course_id = 1
AND lower(trim(learning)) = 'schreibe 1–20 auf karten und übersetze jede zahl ins bisaya.';
`);
},
async down() {
// The invalid generated SRS card must not be restored.
}
};