HomeSoftware Heritage

pg: Make date_neg_utc_offset is not null if date is not null.

Description

pg: Make date_neg_utc_offset is not null if date is not null.

Fixes a regression in 038a219f84d6b8a4f02b48f9ad3c5d823d097790,
as it made converters expect a boolean.

We stopped writing this kind of nulls since we started using model
objects for insertions, but didn't migrate existing data.

This commit migrates these nulls to false, then adds a constraint
to enforce it in the future.

Details

Provenance
vlorentzAuthored on Aug 19 2020, 12:40 PM
vlorentzPushed on Aug 20 2020, 8:51 AM
Differential Revision
D3802: pg: Make date_neg_utc_offset is not null if date is not null.
Parents
rDSTO7dcd5708b0cf: converters: convert neg_utc_offset to False if it is None.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 14685
Build 22625: test-and-buildJenkins console · Jenkins