usernane / phMysql

PHP library for building MySQL database schema and quires.
MIT License
4 stars 2 forks source link

Unique on columns which are composite key #11

Closed ibrahimBeladi closed 4 years ago

ibrahimBeladi commented 4 years ago

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.

usernane commented 4 years ago

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