-- Add unique collection id and locale id constraint on collections_texts ALTER TABLE collections_texts ADD UNIQUE (collection_id, locale_id);