Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: remove PL opensubtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Nov 11, 2021
1 parent a15d88a commit 887bd99
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions server/migrations/20211111191000-remove-pl-opensubtitles.js
Original file line number Diff line number Diff line change
@@ -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(),
};

0 comments on commit 887bd99

Please sign in to comment.