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

Commit

Permalink
fix: simplify migration
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Jul 8, 2021
1 parent 9f7e5ef commit 2eeac34
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 25 deletions.
19 changes: 19 additions & 0 deletions server/migrations/20210708212100-remove-be-sentences.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';

// Delete sentences from two authors as
// bulk uploads covered them and has better quality.
// https://discourse.mozilla.org/t/sentence-collection-for-belarusian-request-for-advice/82150/14

module.exports = {
up: (queryInterface) => {
return queryInterface.sequelize.query(`
DELETE FROM Sentences WHERE
localeId = "be" AND
(
source LIKE "%Максім Гарэцкі" OR
source LIKE "%Кузьма Чорны"
);
`);
},
down: () => Promise.resolve(),
};

This file was deleted.

0 comments on commit 2eeac34

Please sign in to comment.