removes foreign key constraints from mjr