[racktables-users] Problem updating from 0.19.7 to 0.19.13

  • From: "Todd D. Taft" <todd_taft@xxxxxxx>
  • To: "racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
  • Date: Tue, 07 Aug 2012 14:57:58 -0400

When attempting to upgrade from 0.19.7 to 0.19.13, I got these errors on the 0.19.7 -> 0.19.8 upgrade:


DELETE FROM AttributeMap WHERE chapter_id NOT IN (SELECT id FROM Chapter) -- Cannot delete or update a parent row: a foreign key constraint fails (`racktables_db`.`AttributeValue`, CONSTRAINT `AttributeValue-FK-attr_id` FOREIGN KEY (`attr_id`) REFERENCES `AttributeMap` (`attr_id`))

ALTER TABLE AttributeMap ADD CONSTRAINT `AttributeMap-FK-chapter_id` FOREIGN KEY (chapter_id) REFERENCES Chapter (id) -- Cannot add or update a child row: a foreign key constraint fails (`racktables_db`., CONSTRAINT `AttributeMap-FK-chapter_id` FOREIGN KEY (`chapter_id`) REFERENCES `Chapter` (`id`))

It looks like a similar issue was discussed a few months ago, but I never saw a final description of how to fix this problem. So, how do I clean up from this?

--
Todd D. Taft
UNC Computational Systems Biology
todd_taft@xxxxxxx

Other related posts: