-
Notifications
You must be signed in to change notification settings - Fork 400
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
Comments
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. |
thanks you @coffeeburrito I hope this feature will be added in a near release, its in pr a year ago already. |
I really hope someone takes care of this. Seems like a very handy inclusion to the library. @timgws? |
@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. |
@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. |
exist a way to check if an index exists? I need it to avoid the error
no such index
when execute deleteIndexThe text was updated successfully, but these errors were encountered: