upgrade from 16.4.1 to 16.5.1 fails due to postgres key issue
PG::ForeignKeyViolation: ERROR: insert or update on table "ci_pipeline_messages" violates foreign key constraint "fk_0946fea681" DETAIL: Key (pipeline_id_convert_to_bigint)=(0) is not present in table "ci_pipelines".