remove non core languages on description categories (#502)

* remove non core languages on description categories

* fixes

* added safe again

* correct migration number
This commit is contained in:
Arwid Thornström
2025-09-08 08:36:12 +02:00
committed by GitHub
parent 757329d328
commit 81ff0845f3
+22
View File
@@ -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;