You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bahdcoder
changed the title
Schema generator does not add new unique indexes when updating
Schema generator does not add new indexes when updating
Oct 24, 2020
Index diffing happens in findIndexDifference method (hasSameIndex is used only for diffing FK indexes), but that was adding missing indexes only for those defined on entity level (those are stored in meta.indexes and meta.uniques), not on property level (stored on meta.properties[prop].index and unique respectively).
Describe the bug
When running
schemaGenerator.updateSchema()
, new unique indexes added to the column do not get created.To Reproduce
Steps to reproduce the behavior:
Article
with aslug
string column.Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Versions
The text was updated successfully, but these errors were encountered: