MYSQL ERROR 1005: Can't create table (errno: 150) :: InnoDB
Both tables must be INNODB. The foreign key field must have an index. The foreign key field and the field being referenced must be of the same type. If fields are integer (typical) they must be unsigned.