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

Fix dropIndex for compound indexes with sorting order #1885

Merged
merged 2 commits into from Feb 8, 2020

Conversation

mauri870
Copy link
Contributor

@mauri870 mauri870 commented Dec 11, 2019

It's not possible to drop an index with a descending sorting order, because the library assumes an ascending order. If no order is given to the field, the default order is used.

@Smolevich
Copy link
Contributor

@mauri870 add description please

@mauri870
Copy link
Contributor Author

Description updated @Smolevich

@Smolevich
Copy link
Contributor

@mauri870 tests failed, check please

Copy link
Contributor

@Smolevich Smolevich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs work

src/Jenssegers/Mongodb/Schema/Blueprint.php Outdated Show resolved Hide resolved
@mauri870 mauri870 force-pushed the drop-compound-index branch 4 times, most recently from 87b6e2d to 296dfd4 Compare February 4, 2020 12:07
@mauri870
Copy link
Contributor Author

mauri870 commented Feb 4, 2020

@Smolevich Can you take a look at the failing test? Can't find the cause of the error.

@Smolevich
Copy link
Contributor

Smolevich commented Feb 4, 2020

@Smolevich Can you take a look at the failing test? Can't find the cause of the error.

See
https://github.com/jenssegers/laravel-mongodb/pull/1885/checks?check_run_id=425253804

Снимок экрана 2020-02-04 в 15 16 08

@mauri870 mauri870 force-pushed the drop-compound-index branch 4 times, most recently from 1cacd52 to b13bc18 Compare February 5, 2020 17:32
@mauri870
Copy link
Contributor Author

mauri870 commented Feb 5, 2020

@Smolevich All tests passing

@Giacomo92
Copy link

Can you merge actual master, please? @mauri870

@Smolevich Smolevich merged commit 4d81b40 into mongodb:master Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants