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

This commit is contained in:
2026-05-29 21:15:40 +02:00
parent aff4b63188
commit 3a77761f96
3 changed files with 57 additions and 2 deletions

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