If you try to alter tables type InnoDB and create a relationship between key fields for a cascading delete, you may get this error:
#1050 ...... error 150
What this means is:
SQLCODE -150, Error: THE OBJECT OF THE INSERT, DELETE, OR UPDATE STATEMENT IS A VIEW OR TRANSITION TABLE FOR WHICH THE REQUESTED OPERATION IS NOT PERMITTED
How you fix it is:
This relationship for cascading delete requires that all key fields are set to the same type and length and the tables are set to the InnoDB storage engine. If not, the above error results.
