Check for duration in migration

Change-Id: I25ffea32c31e2080385dac26a5f4f622b5d74b35