The SchemaMigrator cannot check if an index exists on a combination of columns of a table

Description

Currently, in the AbstractSchemaMigrator class, the findMatchingIndex method only checks if the index exists by its name. In case of that an index on the same set of columns has been created before but with a different name, Hibernate will create a duplicated index.

Environment

None

Status

Assignee

Unassigned

Reporter

Tam Tran Minh

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure