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:
@@ -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;
|
||||||
Reference in New Issue
Block a user