Open infotroph opened 6 years ago
before anything, please check to make sure I parsed the error correctly and listed the right records.
This may be related to issue #500.
This is due to the fact that there seem to be orphaned items in the database. Problem is that a citation was removed, maybe updating a record betydb.org, but not on the host that holds the master version of that record. Next sync the record is reset the original state.
Another factor here may be that the terra-ref database has some constraints that aren't checked in and that aren't on the EBI database. We did this because we wanted to avoid some of the problems the EBI database has—duplicate rows and dangling foreign keys—without having to clean up the EBI database first.
One unforeseen consequence of this is that it makes a difference whether a user first creates his or her database from the terra-ref database or from the EBI database. Starting from the latter results in a database with more constraints.
Upgraded my local Postgres from 9.6 to 10.1 and Postgis from 2.3.x to 2.4.2. Load works except for a few foreign key errors that seem to be records with bad IDs:
As per @robkooper, these IDs correspond to the following records for me: