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

Can't increase version of db schema - UpgradeError Not yet support for changing primary key #1148

Closed
dmingazov opened this issue Oct 19, 2020 · 2 comments
Assignees
Labels

Comments

@dmingazov
Copy link

Hi,
Can't figure our what I'm doing wrong here.
To reproduce I use sample project from here: samples/react

import Dexie from 'dexie';
import 'dexie-observable';

const db = new Dexie('ReactSampleDB');
db.version(1).stores({ todos: '$$uuid' });

//After deployment (which is Ok), I increase version by adding this:

db.version(2).stores({ tasks: '$$uuid' });

And after page reload I'm getting this exception
Unhandled Rejection (OpenFailedError): UpgradeError Not yet support for changing primary key

@dmingazov
Copy link
Author

Seems like that issue had similar symptoms
#959 (comment)

@dfahlander dfahlander self-assigned this Oct 20, 2020
@dfahlander dfahlander added the bug label Oct 20, 2020
dfahlander added a commit that referenced this issue Oct 20, 2020
The .src property is treated as being different if using dexie-observable's '$$' prefix, resulting in error when upgrading never works if using it.

Resolves issue #1148
dfahlander added a commit that referenced this issue Oct 20, 2020
The .src property is treated as being different if using dexie-observable's '$$' prefix, resulting in error when upgrading never works if using it.

Resolves issue #1148
@dfahlander
Copy link
Collaborator

Thanks for reporting this. It's fixed and will be released in 3.0.3-rc.3.

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

No branches or pull requests

2 participants