Migrations: Delete realm or use versioning


We have a mobile app written with react-native and we are using realm as db.
We are soon releasing to production, and have thought about possible migrations in the future.
At the moment we are using ‘deleteRealmIfMigrationNeeded’ property, but I’ve read some info about using different schema versions to handle migrations. Which is better to use?

Thanks in advance


If you have deleteRealmIfMigrationNeeded = true, and the schema changes, then the db will be deleted.
If you dont want to deleted, then you need to have migrations.