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;