The job.product_id column has type VARCHAR(100) but it actually holds ids from the product table, so it should be an INT with a foreign key to product.id.
(In reply to Dan Callaghan from comment #0) > The job.product_id column has type VARCHAR(100) but it actually holds ids > from the product table, so it should be an INT with a foreign key to > product.id. so for testing this bug, just check the job.product_id column should be an INT Type and a foreign key to product.id in DB? and if no regression after an acceptance test, this bug could be verified?
(In reply to wangjing from comment #2) Yes.
This is one of the inconsistencies which I found and fixed by running our new db migration tests against a production schema. http://gerrit.beaker-project.org/3390
Beaker 19.0 has been released.