refactor: change the migration for extracted table to handle
record with null or invalid json for extracted text as they have versions in recrod history and cannot be skipped in migration handle n+1 query with just one insert
record with null or invalid json for extracted text as they have versions in recrod history and cannot be skipped in migration handle n+1 query with just one insert