Fix not-null constraint violation inserting build step

DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: ERROR:  null value in column "machine" violates not-null constraint
This commit is contained in:
Eelco Dolstra 2015-04-07 13:34:00 +02:00
parent aec0a35114
commit 9e664cf8b0

View file

@ -210,7 +210,7 @@ sub doBuild {
my $now = time;
my $stepStartTime = $now;
my $stepStopTime = $now;
my $machine = undef;
my $machine = "";
txn_do($db, sub {
if ($buildSteps{$drvPathStep}) {
my $step = $build->buildsteps->find({stepnr => $buildSteps{$drvPathStep}}) or die;