Deleted object from schema still exists in the new realm #2540
-
Hello I do some preprocessing to prepare my realm to sync and, I am making some objects embedded. Before switching to realm-sync, I need to write migrations for supporting that changes (I have active users). So I have the following changes. I have added partition keys and renamed primary keys (Id to _id) in the my realm object before
after
I have added a migration function supporting partition keys. When I restore the older databases, the migration functions work fine except for one thing. Class A that I have already deleted from the schema, still exists in the already migrated realm file. I guess that partition keys somehow interrupt the deletion of the objects. So any ideas about what happens here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @vardansargsyan92, can I ask you how do you check for the existence of the class A objects? |
Beta Was this translation helpful? Give feedback.
Hi @vardansargsyan92, can I ask you how do you check for the existence of the class A objects?