fix(vocab): exclude counting tasks from SRS
All checks were successful
Deploy to production / deploy (push) Successful in 2m31s

This commit is contained in:
Torsten Schulz (local)
2026-11-03 11:19:29 +01:00
parent 6578ccdeed
commit fddb97b385
3 changed files with 20 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
'use strict';
/** Removes counting exercise instructions accidentally stored as SRS cards. */
module.exports = {
async up(queryInterface) {
await queryInterface.sequelize.query(`
DELETE FROM community.vocab_srs_item
WHERE course_id = 1
AND lower(trim(learning)) ~ '^(zähle|zaehle)';
`);
},
async down() {
// The invalid generated SRS cards must not be restored.
}
};