EllisLab/CodeIgniter — pull request #1778 by berklee (2012-09-07 10:48:07+00:00)
Title: Changed the "FOREIGN KEY" statement for non-primary keys in PDO_Forge

Line 125 of pdo_forge.php: When creating non-primary keys using the PDO driver, it defaults to issuing "FOREIGN KEY" instead of "KEY". Changed "FOREIGN KEY" back to "KEY" and it works again.