fix: D1-2 correct post translation unique_constraint name so duplicate-language violations return a changeset error

This commit is contained in:
hugo committed 2026-05-29 21:15:40 +02:00
1 parent aff4b63188
commit 3a77761f96
3 files changed
+57 -2

No files matched your search

+1 -1
View File
@@ -79,6 +79,6 @@ defmodule BDS.Posts.Translation do
:updated_at
])
|> foreign_key_constraint(:translation_for)
|> unique_constraint(:language, name: :post_translations_translation_language_idx)
|> unique_constraint(:language, name: :post_translations_translation_for_language_index)
end
end