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

RxDB "Cannot open database state with newer RxDB version" error when trying to update from v13 to v15 #5706

Closed
AleksandrMatuka opened this issue Mar 3, 2024 · 1 comment

Comments

@AleksandrMatuka
Copy link
Contributor

AleksandrMatuka commented Mar 3, 2024

Problem:
I'm trying to update my RxDB database from version 13 to version 15, but I'm encountering the next error:

bootstrap.tsx:242 RxError (DM5): RxError (DM5):
Cannot open database state with newer RxDB version. You have to migrate your database state first. See https://rxdb.info/migration-storage.html
Given parameters: {
args:{
"database": "dbname",
"databaseStateVersion": null,
"codeVersion": "15.10.0"
}}

Does this mean that there were changes in version 15 that require us to create a new database with a new name during migration?

If affirmative, it raises concerns. What would be the appropriate approach for updating and safeguarding data from prior versions such as 12/13 to version 15?

Version:
15.10

environment:
chrome

@pubkey
Copy link
Owner

pubkey commented Mar 4, 2024

You have to migrate your data, see https://rxdb.info/migration-storage.html
There is no 13->15 migration. You can only migrate one version at a time. In v14 the migration plugin was in the premium package, it was only made open source in v15. If you do not want to get premium access, you can use the json-export/import plugin to migrate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants