Data migration to populate the entity field for invoices