Files
yourpart3/backend/migrations-active/20261027000001-remove-srs-good-night-task-prompt.cjs
Torsten Schulz (local) 67ecac64aa
All checks were successful
Deploy to production / deploy (push) Successful in 2m9s
fix(vocab): exclude greeting tasks from SRS
2026-10-27 14:42:31 +01:00

17 lines
479 B
JavaScript

'use strict';
/** Removes a generated task instruction accidentally persisted as an SRS card. */
module.exports = {
async up(queryInterface) {
await queryInterface.sequelize.query(`
DELETE FROM community.vocab_srs_item
WHERE course_id = 1
AND lower(trim(learning)) = 'wünsche einen guten abend, eine gute nacht und dass die person gut schlafen soll.';
`);
},
async down() {
// The invalid generated SRS cards must not be restored.
}
};