The latest migration script fails when adding a NOT NULL constraint due to existing null values in the target column. This blocks deployment to production. Pre-migration data cleanup and backfill scripts are needed to handle legacy records before applying constraints.