From f4cc9c552756afbc69b50419fe51f9671628aeb5 Mon Sep 17 00:00:00 2001 From: Martin Carlsson Date: Tue, 27 Apr 2021 10:19:57 +0200 Subject: [PATCH] P5-6333 move text tags to shop category (#216) --- migrations/000.332.sql | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 migrations/000.332.sql diff --git a/migrations/000.332.sql b/migrations/000.332.sql new file mode 100644 index 0000000..1447e34 --- /dev/null +++ b/migrations/000.332.sql @@ -0,0 +1,39 @@ +-- P5-6333: move text tags to shop category + + +--delete some duplicated texts + +delete from "i18n-texts_data" where textid in ( + (select textid from "i18n-texts" where name = 'total' and category = 'checkout2'), + (select textid from "i18n-texts" where name = 'total' and category = 'global'), + (select textid from "i18n-texts" where name = 'company' and category = 'checkout2'), --not same + (select textid from "i18n-texts" where name = 'price' and category = 'global'), + (select textid from "i18n-texts" where name = 'size' and category = 'global'), --not same + (select textid from "i18n-texts" where name = 'email' and category = 'global') +); + + +delete from "i18n-texts" where textid in ( + (select textid from "i18n-texts" where name = 'total' and category = 'checkout2'), + (select textid from "i18n-texts" where name = 'total' and category = 'global'), + (select textid from "i18n-texts" where name = 'company' and category = 'checkout2'), --not same + (select textid from "i18n-texts" where name = 'price' and category = 'global'), + (select textid from "i18n-texts" where name = 'size' and category = 'global'), --not same + (select textid from "i18n-texts" where name = 'email' and category = 'global') +); + + +-- change category to shop +update "i18n-texts" set category = 'shop' where category in ( + 'custom', + 'messages', + 'inquiries', + 'global', + 'products', + 'checkout', + 'checkout2', + 'checkout2/deliveryMethods', + 'checkout/step1', + 'checkout/step3', + 'checkout/receipt' +);