usernane/phMysql

Unique on columns which are composite key

ibrahimBeladi opened this issue · 1 comments

Problem

When using 2 or more columns as a composite key (using isPrimary function). All the columns receive the unique property which is wrong and leads to errors.

Purposed solution

Remove the unique property from the columns upon receiving the primary property if there are 2 or more columns unless specified otherwise which is unlikely.

The bug was fixed in This Commit. Thanks for reporting.