Turns out in the postgresql schema, there is no "not null" constraint
on the origin.type column already.
It's not a real fix (well i did not test it thorougly, i just know local tests
are fine), it's just a tryout to make the D2145 build pass.
Note: I don't know if jenkins knows how to cross-build (in-between
repositories) patches though.