From 4fe386945480445477db331ffe2446caaa584285 Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Wed, 26 Apr 2023 10:42:54 +0200 Subject: [PATCH] Add unique locale and collections constraint (#319) --- migrations/000.410.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 migrations/000.410.sql diff --git a/migrations/000.410.sql b/migrations/000.410.sql new file mode 100644 index 0000000..aeee0d1 --- /dev/null +++ b/migrations/000.410.sql @@ -0,0 +1,2 @@ +-- Add unique collection id and locale id constraint on collections_texts +ALTER TABLE collections_texts ADD UNIQUE (collection_id, locale_id);