From d7047d1dcbb8ea136b1c841827211895f01f1a7d Mon Sep 17 00:00:00 2001 From: Michael Kohler Date: Sun, 7 Nov 2021 01:48:45 +0100 Subject: [PATCH] fix: remove nb-NO tatoeba sentences --- .../20211107004500-remove-nb-NO-tatoeba.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 server/migrations/20211107004500-remove-nb-NO-tatoeba.js diff --git a/server/migrations/20211107004500-remove-nb-NO-tatoeba.js b/server/migrations/20211107004500-remove-nb-NO-tatoeba.js new file mode 100644 index 00000000..e205d0b4 --- /dev/null +++ b/server/migrations/20211107004500-remove-nb-NO-tatoeba.js @@ -0,0 +1,14 @@ +"use strict"; + +// https://discourse.mozilla.org/t/sentence-collector-copyright-issues/52767/43 + +module.exports = { + up: async (queryInterface) => { + await queryInterface.sequelize.query(` + DELETE FROM Sentences WHERE ( + localeId="nb-NO" AND source="https://tatoeba.org" + ) + `); + }, + down: () => Promise.resolve(), +};