mozilla/zamboni — comment on commit a1a2345cf85127e95347e183065506242c6ed898
File:  line 0
By kumar303:

ugh, mysql is annoying. I get this cryptic error (haven't narrowed it down yet):

ALTER TABLE `applications_versions` ADD CONSTRAINT `applications_versions_ibfk_4` FOREIGN KEY (`version_id`) REFERENCES `versions` (`id`) ON DELETE CASCADE
Foreign key constraint fails for table `zamboni`.:
,
CONSTRAINT `applications_versions_ibfk_4` FOREIGN KEY (`version_id`) REFERENCES `versions` (`id`) ON DELETE CASCADE
Trying to add in child table, in index `version_id` tuple:
DATA TUPLE: 2 fields;
0: len 4; hex 00000005; asc ;; 1: len 4; hex 00000001; asc ;;

But in parent table `zamboni`.`versions`, in index `PRIMARY`,
the closest match we can find is record:
PHYSICAL RECORD: n_fields 15; compact format; info bits 0