Skip to content

[Proposal] Add Schema::hasIndex() method #3253

Closed
@billmn

Description

What about add a method to the Schema class to check if an index exists?
It can be useful in migrations to avoid possible errors on adding/dropping indexes

I know a method on MySQL but I haven't experience with other DB engines.
I've found this informations to make this:

Thoughts?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions