From c502b58e91c0d9972abbd0c1d31bce871d272b4b Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:03:03 +0100 Subject: [PATCH] Copy Australian texts to NZ (#384) --- migrations/000.468.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 migrations/000.468.sql diff --git a/migrations/000.468.sql b/migrations/000.468.sql new file mode 100644 index 0000000..606c596 --- /dev/null +++ b/migrations/000.468.sql @@ -0,0 +1,5 @@ +-- Copy Australian text tags to New Zealand +INSERT INTO "i18n-texts_data" (textid, text, locale_id) + SELECT textid, text, (select id from locales where value = 'en_NZ') + FROM "i18n-texts_data" WHERE locale_id = (SELECT id FROM locales WHERE value = 'en_AU') + ON CONFLICT (textid, locale_id) DO UPDATE SET text = EXCLUDED.text; \ No newline at end of file