Skip to content

Commit

Permalink
Remove unique attributes for translation
Browse files Browse the repository at this point in the history
A field that is unique cannot have the same name in a different language, which breaks our translation workflows as some translations are the same.
  • Loading branch information
clementprdhomme committed Sep 10, 2024
1 parent c7dc369 commit ef5c2bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"attributes": {
"name": {
"type": "string",
"unique": true,
"unique": false,
"pluginOptions": {
"i18n": {
"localized": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"type": "string",
"required": true,
"unique": true
"unique": false
},
"info": {
"pluginOptions": {
Expand Down
2 changes: 0 additions & 2 deletions cms/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,6 @@ export interface ApiDataToolResourceTypeDataToolResourceType
};
attributes: {
name: Attribute.String &
Attribute.Unique &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
Expand Down Expand Up @@ -1675,7 +1674,6 @@ export interface ApiMpaIucnCategoryMpaIucnCategory
}>;
name: Attribute.String &
Attribute.Required &
Attribute.Unique &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
Expand Down

0 comments on commit ef5c2bf

Please sign in to comment.