diff --git a/server/migrations/20211111191000-remove-pl-opensubtitles.js b/server/migrations/20211111191000-remove-pl-opensubtitles.js new file mode 100644 index 00000000..d3f83cd0 --- /dev/null +++ b/server/migrations/20211111191000-remove-pl-opensubtitles.js @@ -0,0 +1,18 @@ +"use strict"; + +// https://discourse.mozilla.org/t/sentence-collector-copyright-issues/52767/46 + +module.exports = { + up: async (queryInterface) => { + await queryInterface.sequelize.query(` + DELETE FROM Sentences WHERE ( + localeId="pl" AND ( + source LIKE "%opensubtitles.org%" OR + source="open subtitles" OR + source="opensubtitles and project gutenberg" + ) + ) + `); + }, + down: () => Promise.resolve(), +};