From b18ce2391b9cce4853237e20009c132b01b91162 Mon Sep 17 00:00:00 2001 From: Martin Carlsson Date: Thu, 4 Mar 2021 13:21:55 +0100 Subject: [PATCH] P5-6870 create category texts for canada (#196) --- migrations/000.312.sql | 92 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 migrations/000.312.sql diff --git a/migrations/000.312.sql b/migrations/000.312.sql new file mode 100644 index 0000000..5551c46 --- /dev/null +++ b/migrations/000.312.sql @@ -0,0 +1,92 @@ +-- P5-6870: Create canada category texts + + +-- en_CA + +delete from category_texts where locale_id = (select id from locales where value = 'en_CA'); + +INSERT INTO category_texts ( + locale_id, + category_id, + wallpaper_name, + wallpaper_h1, + wallpaper_description, + canvas_name, + canvas_h1, + canvas_description, + name, + design_wallpaper_h1, + design_wallpaper_description, + poster_name, + poster_h1, + poster_description, + framed_print_name, + framed_print_h1, + framed_print_description +) +SELECT + (SELECT id FROM locales WHERE value = 'en_CA'), + category_id, + wallpaper_name, + wallpaper_h1, + wallpaper_description, + canvas_name, + canvas_h1, + canvas_description, + name, + design_wallpaper_h1, + design_wallpaper_description, + poster_name, + poster_h1, + poster_description, + framed_print_name, + framed_print_h1, + framed_print_description +FROM category_texts +WHERE locale_id = (SELECT id FROM locales WHERE value = 'en_US'); + + + +-- fr_CA + +delete from category_texts where locale_id = (select id from locales where value = 'fr_CA'); + +INSERT INTO category_texts ( + locale_id, + category_id, + wallpaper_name, + wallpaper_h1, + wallpaper_description, + canvas_name, + canvas_h1, + canvas_description, + name, + design_wallpaper_h1, + design_wallpaper_description, + poster_name, + poster_h1, + poster_description, + framed_print_name, + framed_print_h1, + framed_print_description +) +SELECT + (SELECT id FROM locales WHERE value = 'fr_CA'), + category_id, + wallpaper_name, + wallpaper_h1, + wallpaper_description, + canvas_name, + canvas_h1, + canvas_description, + name, + design_wallpaper_h1, + design_wallpaper_description, + poster_name, + poster_h1, + poster_description, + framed_print_name, + framed_print_h1, + framed_print_description +FROM category_texts +WHERE locale_id = (SELECT id FROM locales WHERE value = 'fr_FR');