look at upstream_name *NOT* upstream_id

I re-added upstream_id to the cp_import_record table rendering the
precondition invalid. The precondition needs to check a column that
has been removed like: upstream_name.

TEST
-------
* Deploy with GENDB=1
* Redeploy with GENDB=0

The redeploy should work, to see the error use master and run the above 2 deploy scenarios. The second one will fail with an exception.