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

Commit

Permalink
fix: migrate ga to ga-IE
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Jun 26, 2021
1 parent 8da13fb commit 0c6ded6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/lib/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ const LANGUAGES_TO_REMOVE = [
'no', // covered by nb-NO and nn-NO
'ks', // re-added above as native name is wrong
'ff', // re-added - https://discourse.mozilla.org/t/fulah-language-naming-consistency/78378
'ga', // covered by ga-IE
];

const isoLanguages = ISO6391.getLanguages(ISO6391.getAllCodes());
Expand Down
12 changes: 12 additions & 0 deletions server/migrations/20210626132700-migrate-ga-to-ga-ie.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict';

module.exports = {
up: (queryInterface) => {
return queryInterface.sequelize.query(`
UPDATE Sentences
SET localeId="ga-IE"
WHERE localeId="ga"
`);
},
down: () => Promise.resolve(),
};

0 comments on commit 0c6ded6

Please sign in to comment.