Closed FlipEverything closed 7 years ago
Thanks for this. 👍
I happen to run into some difficulties with this PR. The migration()
works perfectly, it creates the expected SQL expression like this: UNIQUE KEY `key_name` (`col1`, `col2`)
.
But the validation doesn't seem to "understand" that kind of unique constraint. The validation fails as like the individual column was unique. Like col1 is unique and col2 is unique, not col1 and col2 is unique together.
I'll look into this issue later. Could somebody provide some feedback regarding this issue or is it just me?
Indeed, i haven't used this for unique index.
@splio-aleroux added multiple compound index support, but forgot to enable it on unique indexes.