candlepin/candlepin — pull request #419 by wottop (2013-10-29 16:34:04+00:00)
Title: Moved the foreign key constraint from new table on creation

Added data population to the new table prior to the foreign key addition.
This covers systems with existing import data that have not had the import upstream consumer table created.
Foreign key application is conditional to cover systems that had original create script executed.