-- 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);
