Changing Field uniqueness after content has been created, changes do not take effect? #1724
-
I made a field "unique". Now content has already been created and I realized I can't duplicate the document because of this field. I then removed the unique prop, but the validation still kicks in, it doesn't matter if I create a new document or edit an old one. Does this have to do with the version history of already created files? Is this a bug? Can I fix this without clearing parts of the database? Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@christian-reichart You should be able to connect to your db and then remove the index that gets created for |
Beta Was this translation helpful? Give feedback.
@christian-reichart You should be able to connect to your db and then remove the index that gets created for
unique
fields. Are you using something like MongoDB Compass? You just need to go to the collection, then click the indexes tab and remove the index related to your unique field 👍