KEYS error 1216

2003-06-25 Thread Terry Spencer
Hi All, Im altering a number of table from MyISAM to innoDb and adding foreign keys. The alteration of the table type works. Adding the row as an index works. Adding the foreign key fails, generating the error: alter table project add FOREIGN KEY (company_id) references company (id) [mySQL]

Re: KEYS error 1216

2003-06-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-06-25 14:03:17 +0100: Im altering a number of table from MyISAM to innoDb and adding foreign keys. The alteration of the table type works. Adding the row as an index works. Adding the foreign key fails, generating the error: alter table project add FOREIGN KEY