Updates Script to fix Constraint errors and to add comment migration