You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add disableUnique property to the slug field for better multi tenant plugin support (#15963)
Fixes#14938
This PR adds a new property `disableUnique` which is useful when you
want to add a compound unique index to the collection `indexes` config
instead, for example with the multi-tenant plugin where the slug is only
unique per tenant, not globally.
|`name`| To be used as the slug field's name. Defaults to `slug`. |
218
-
|`overrides`| A function that receives the default fields so you can override on a granular level. See example below. [More details](#slug-overrides). |
219
-
|`checkboxName`| To be used as the name for the `generateSlug` checkbox field. Defaults to `generateSlug`. |
220
-
|`useAsSlug`| The name of the top-level field to use when generating the slug. This field must exist in the same collection. Defaults to `title`. |
221
-
|`localized`| Enable localization on the `slug` and `generateSlug` fields. Defaults to `false`. |
222
-
|`position`| The position of the slug field. [More details](./overview#admin-options). |
223
-
|`required`| Require the slug field. Defaults to `true`. |
224
-
|`slugify`| Override the default slugify function. [More details](#custom-slugify-function). |
|`name`| To be used as the slug field's name. Defaults to `slug`. |
218
+
|`overrides`| A function that receives the default fields so you can override on a granular level. See example below. [More details](#slug-overrides). |
219
+
|`checkboxName`| To be used as the name for the `generateSlug` checkbox field. Defaults to `generateSlug`. |
220
+
|`disableUnique`| Disables the unique index on the field. Useful when you want to add a compound unique index to the collection `indexes` config instead, for example with the multi-tenant plugin where the slug is only unique per tenant, not globally |
221
+
|`useAsSlug`| The name of the top-level field to use when generating the slug. This field must exist in the same collection. Defaults to `title`. |
222
+
|`localized`| Enable localization on the `slug` and `generateSlug` fields. Defaults to `false`. |
223
+
|`position`| The position of the slug field. [More details](./overview#admin-options). |
224
+
|`required`| Require the slug field. Defaults to `true`. |
225
+
|`slugify`| Override the default slugify function. [More details](#custom-slugify-function). |
0 commit comments