MT#9763 add key for device_id column