modify condition of migration while adding lock_version