Core Data destructive migration

50 views Asked by At

I have this little nagging problem where I need to define migration each time let say I add new column. I get data from API and do not mind destroying everything and rebuilding. Android Room have what we call destructive migration where Room destroys everything and recreates empty version of new schema.

Is there such instruction for core data, where I can tell it: If versions mismatches, destroy everything and create empty database using latest schema?

0

There are 0 answers