CloudKit Dashboard Development Environment Deleting Indexes

I'm trying to modify a CloudKit record type on my dev env but every time I add a field all my indexes get deleted leaving only the basic ones. I have tried resetting multiple times (losing all the test data along with it, very annoying) but it just keeps deleting indexes and sometimes record fields too. This is preventing me to test on the dev environment, and since all the indexes get deleted it also prevents me from pushing the changes to the production environment without readding all the indexes back manually again. Is this a bug on CloudKit dashboard? How can I fix this?

Maybe I'm not the best person to answer your question. As I know CloudKit's development environment update the schema automatically when you first run your app. Is there any reasons you create the field manually?

I'm not creating it, the schema is already in production. I'm trying to modify a record already being used in production, but the indexes get deleted, so i'm left with a production environment with indexes and a development environment without indexes. When I reset the dev environment, it goes back to the one in the production environment (with indexes) until I make a change, then it deletes the indexes, leaving me again with a production environment with indexes and a development environment without. This causes the app to crash when I run it using the development environement because none of the queries make sense without the indexes.

I hope that makes clearer the situation I'm in. In any case thanks for the reply, at this point I'm willing to try anything, there's always the possibility I did something wrong at some point, or forgot to do something at another, or maybe it is something else entirely that I'm missing.

CloudKit Dashboard Development Environment Deleting Indexes
 
 
Q