From 9b387ec03289e5e9fb771b0f8e65be9f04563d6d Mon Sep 17 00:00:00 2001 From: fredrikphotowall <35255659+fredrikphotowall@users.noreply.github.com> Date: Wed, 11 Nov 2020 12:45:58 +0100 Subject: [PATCH] P5-6106 Remove territory and language columns from i18n-texts_data (#142) --- migrations/000.264.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 migrations/000.264.sql diff --git a/migrations/000.264.sql b/migrations/000.264.sql new file mode 100644 index 0000000..6991532 --- /dev/null +++ b/migrations/000.264.sql @@ -0,0 +1,9 @@ +-- P5-6106 Remove territory and language columns from i18n-texts_data + +ALTER TABLE "i18n-texts_data" DROP CONSTRAINT "i18n-texts_data_language_fkey"; +ALTER TABLE "i18n-texts_data" DROP CONSTRAINT "i18n-texts_data_territory_fkey"; + +ALTER TABLE "i18n-texts_data" DROP COLUMN territory; +ALTER TABLE "i18n-texts_data" DROP COLUMN language; + +ALTER TABLE "i18n-texts_data" ADD PRIMARY KEY (textid, locale_id);