Hi I’m new with Strapi, please help, so I created new collection types, I had to change my collection name from events to event since the “events” word give me an error because of the plural.
I also already updated or allowed: users & permission roles for public and authenticated
I have not succesfully been able to rename a colletcion type.
The issues is that the entry name is used in multiple places including the database. So when you change the name in the UI, it changes the api model name in the .json file, but not the name of the json file itself event.settings.json {“collectionName”: “event”}
→
event.settings.json {“collectionName”: “events”}
nor does it change the database table name
The best thing to do i found, is to:
create a new collection in the UI replace
copy the old model folder (root>api>event)
change the api model folder name representing the new collection name
go through the files in the folder and change all occurances off the old collection name into the new one
No obviously this is a bit of work, so decide wether its easier to just built a new collection model from the uit (if its a simple one) or do this workaround if you have an extensive model built.