Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete realm if migration needed #1049

Closed
SApolinario opened this issue Nov 29, 2022 · 1 comment · Fixed by #1050
Closed

Delete realm if migration needed #1049

SApolinario opened this issue Nov 29, 2022 · 1 comment · Fixed by #1050
Assignees

Comments

@SApolinario
Copy link

SApolinario commented Nov 29, 2022

Description

Is there a way to simply delete the existing realm if migration is needed? When upgrading the mobile app I'd like to simply delete the realm if any migration is required and re-create. Is there currently an easy way to do this. Thanks.

How important is this improvement for you?

No response

@nirinchev
Copy link
Member

Sounds like a field on the config that we missed. We should expose it similarly to https://github.com/realm/realm-dotnet/blob/cf6113b6d78055a08a1b73cd0cde1696786672f8/Realm/Realm/Configurations/RealmConfiguration.cs#L69

And the implementation would be to set the config schema mode to SchemaMode::SoftResetFile.

@nirinchev nirinchev self-assigned this Nov 29, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants