This is part of a "Populate-then-rely" schema change, as described in
schema/README.updates. Specifically, this is the final part of the
step:
5. Commit: code to populate new column; changing `add' to status
Needed and `constraint' to status Ready.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
--- ##OSSTEST## 004 Unfinished
+-- ##OSSTEST## 004 Ready
--
-- Previously, the logfile name was inferred from "stepno" and
-- "testid". Newer code will need it to be set explicitly.
} else {
set stepno 1
}
+ set logfile [step-log-leafname $stepno $ts]
db-execute "
INSERT INTO steps (flight, job, stepno,
- step, status,
+ step, logfile, status,
testid)
VALUES ([pg_quote $flight], [pg_quote $job], $stepno,
- [pg_quote $ts], 'running',
+ [pg_quote $ts], [pg_quote $logfile], 'running',
'STARTING')
"
} emsg]} {