17 lines
410 B
JavaScript
17 lines
410 B
JavaScript
'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.
|
|
}
|
|
};
|