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

indexes doesn't change when modify database design and version number #37

Open
shezw opened this issue May 20, 2020 · 0 comments
Open

Comments

@shezw
Copy link

shezw commented May 20, 2020

Hi there
I'm using zangodb in chrome extension development.
The problem is that when I use the config object and version number to upgrade the database version to the new version, the indexes has not changed, but the version number has changed.

These two configurations are like this:

// version 1
let DBStruct  = {
	user: 	{"userid":true},
};
// version 2
let DBStruct  = {
	user: 	{"uid":true,"userid":false},
};

The uid index not created, and userid is still there.

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

1 participant