[ bug #1552 ] Foreign Key problems when doing first install