From 9203e4f3eb634169a12ee9f70ab91fe95798bd94 Mon Sep 17 00:00:00 2001 From: Michael Kohler Date: Thu, 27 Oct 2022 21:43:15 +0000 Subject: [PATCH] fix: remove all oc sentences (#642) --- server/migrations/20221027223900-remove-oc.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server/migrations/20221027223900-remove-oc.js diff --git a/server/migrations/20221027223900-remove-oc.js b/server/migrations/20221027223900-remove-oc.js new file mode 100644 index 00000000..577c50f3 --- /dev/null +++ b/server/migrations/20221027223900-remove-oc.js @@ -0,0 +1,13 @@ +"use strict"; + +// https://github.com/common-voice/sentence-collector/issues/641 + +module.exports = { + up: async (queryInterface) => { + await queryInterface.sequelize.query(` + DELETE FROM Sentences + WHERE localeId = "oc" + `); + }, + down: () => Promise.resolve(), +};