Files
yourpart3/backend/migrations-active/20260909000001-remove-invalid-past-marker-srs-sentence.cjs
Torsten Schulz (local) 01ee72c700
All checks were successful
Deploy to production / deploy (push) Successful in 2m40s
feat(migration): add migration to remove invalid past marker from vocab_srs_item
2026-09-09 21:06:25 +02:00

14 lines
317 B
JavaScript

'use strict';
module.exports = {
async up(queryInterface) {
await queryInterface.sequelize.query(`
DELETE FROM community.vocab_srs_item
WHERE lower(trim(learning)) = 'vergangenheit'
AND lower(trim(reference)) IN ('ni-kaon ko ganiha', 'nikaon ko ganiha');
`);
},
async down() {}
};