type
column in Jobsets
is defined as NOT NULL. However, the original upgrade
script adding this column ommited the constraint.
YQQQNMVNXKK264QPJPAGOFHRMQASA6YUJDW25MLP4NGKXW2DXWUQC
update Jobsets set type = 0 where type is null;
alter table Jobsets alter column type set not null;