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

syncIndexes check same index #8135

Closed
libaochuan90 opened this issue Sep 5, 2019 · 0 comments
Closed

syncIndexes check same index #8135

libaochuan90 opened this issue Sep 5, 2019 · 0 comments
Labels
confirmed-bug We've confirmed this is a bug in Mongoose and will fix it.
Milestone

Comments

@libaochuan90
Copy link

before

schema.createIndex({ a: 1, b: 1 });

after

schema.createIndex({ b:1, a: 1 });
Model.syncIndexes();

It dose not drop index {a: 1, b: 1}

@vkarpov15 vkarpov15 added this to the 5.7.1 milestone Sep 10, 2019
@vkarpov15 vkarpov15 added has repro script There is a repro script, the Mongoose devs need to confirm that it reproduces the issue confirmed-bug We've confirmed this is a bug in Mongoose and will fix it. and removed has repro script There is a repro script, the Mongoose devs need to confirm that it reproduces the issue labels Sep 10, 2019
vkarpov15 added a commit that referenced this issue Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug We've confirmed this is a bug in Mongoose and will fix it.
Projects
None yet
Development

No branches or pull requests

2 participants