From 81ff0845f3ffa8720a6c9d20d09b42293dcd0bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arwid=20Thornstr=C3=B6m?= Date: Mon, 8 Sep 2025 08:36:12 +0200 Subject: [PATCH] remove non core languages on description categories (#502) * remove non core languages on description categories * fixes * added safe again * correct migration number --- migrations/000.573.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 migrations/000.573.sql diff --git a/migrations/000.573.sql b/migrations/000.573.sql new file mode 100644 index 0000000..5905ae1 --- /dev/null +++ b/migrations/000.573.sql @@ -0,0 +1,22 @@ +-- Delete all the non core texttags in product description categories + +DELETE FROM "i18n-texts_data" td +USING "i18n-texts" t, locales l +WHERE td.textid = t.textid + AND td.locale_id = l.id + AND t.category = 'productDescriptionWallpaper' + AND l.fallback_id IS NOT NULL; + +DELETE FROM "i18n-texts_data" td +USING "i18n-texts" t, locales l +WHERE td.textid = t.textid + AND td.locale_id = l.id + AND t.category = 'productDescriptionCanvas' + AND l.fallback_id IS NOT NULL; + +DELETE FROM "i18n-texts_data" td +USING "i18n-texts" t, locales l +WHERE td.textid = t.textid + AND td.locale_id = l.id + AND t.category = 'productDescriptionPoster' + AND l.fallback_id IS NOT NULL;