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

Destructive option on version increase rather than requiring migration #486

Closed
rpekarek opened this issue Jan 20, 2021 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@rpekarek
Copy link

In Room on Android we have an option to fallbackToDestructiveMigration(), meaning we don't have to supply a migration on version update, the database is simply torn down and recreated with the new schema.

This is a nice feature when using the database for caching, we don't necessarily want or need the old data forms when we update the schema

@vitusortner vitusortner added the duplicate This issue or pull request already exists label Jan 20, 2021
@vitusortner
Copy link
Collaborator

Hi! We're certainly interested in such a feature and a draft of it is available at #473. I'll close this issue as a duplicate of #356.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Development

No branches or pull requests

2 participants