Welcome Guest, Not a member yet? Register   Sign In
DB_Forge and Multiple Column Non-primary Keys
#1

[eluser]Unknown[/eluser]
According to the documentation (http://ellislab.com/codeigniter/user-gui...ml#add_key), passing an array as the first parameter of DB_Forge::add_key() causes it to make a multi-column key.

However, after testing it thoroughly, I've come to the conclusion that the documentation is incorrect -- add_key() creates multiple single-column keys when passed an array and no second argument. Taking a look at the source code (/system/database/DB_Forge.php:104) and following the path of the object's $keys variable, it is clear that the method does not perform as the documentation suggests.
#2

[eluser]bigtony[/eluser]
BUMP: 2 years later and this STILL hasn't been fixed (CI version 2.1.4)! If someone at EllisLab could address this it would be most helpful.
#3

[eluser]CroNiX[/eluser]
Have you searched the issues in gitgub to see if someone has already reported this? If not, you might want to create an issue or it probably won't be seen, which is probably why it still exists.

The forums are not for bug reports. It's been years since anyone from EllisLabs has responded to a post in these forums, so I don't think they read them.




Theme © iAndrew 2016 - Forum software by © MyBB