Fix addForeignKey
Checking in changes prior to tagging of version 1.5.2.