EllisLab/CodeIgniter — pull request #1939 by AgentConundrum (2012-10-28 21:32:38+00:00)
Title: Fixed creation of non-primary composite keys.

Modified CI_DB_forge::add_key() to only recursively add each key in an passed array of keys if they're meant to be primary keys.

Otherwise, the array needs to be maintained so that composite keys are preserved.