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

Check if index exists #180

Open
maganius opened this issue Dec 6, 2018 · 5 comments
Open

Check if index exists #180

maganius opened this issue Dec 6, 2018 · 5 comments

Comments

@maganius
Copy link

maganius commented Dec 6, 2018

exist a way to check if an index exists? I need it to avoid the error no such index when execute deleteIndex

@coffeeburrito
Copy link
Contributor

There's a pull request for that (#143), but it's not a current feature. Unless that gets merged you'll have to handle it through try-catch block.

@maganius
Copy link
Author

maganius commented Dec 6, 2018

thanks you @coffeeburrito I hope this feature will be added in a near release, its in pr a year ago already.

@DefaultLGTM
Copy link

DefaultLGTM commented Jan 31, 2019

I really hope someone takes care of this. Seems like a very handy inclusion to the library. @timgws?

@timgws
Copy link
Member

timgws commented Jan 31, 2019

@Valkyrurr it may be. I'm not sure if adding and removing indexes should be something that is done by the library though. This is more of a maintenance and system admin thing, rather than something that should be performed by some random software running on the machine.

@hoersten
Copy link

hoersten commented Mar 5, 2019

@timgws The original intent of the PR was to integrate with Laravel migration processes. To check that an index is there before deleting the index during rollback or checking if it is already there during migration.

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

5 participants