Fixed mysql foreign key failure
Merge pull request #247 from AmazingDreams/master

Fixed mysql foreign key failure