Project

General

Profile

« Previous | Next » 

Revision 6178

schemas/vegbien.sql: referencename: Scope it by top-level datasource, because institutionCodes (which map to this field) are not globally unique. This involves renaming the previous reference_id field, which was for the matched reference, to matched_reference_id, to allow a scoping reference_id field.

View differences:

filter_ERD.csv
8 8
"^ALTER TABLE (?!method)\b[^;]*\bFOREIGN KEY\b[^;]*\bREFERENCES method\b[^;]*;",,inward
9 9
"^ALTER TABLE \b[^;]*\bFOREIGN KEY\b[^;]*\(submethod_id\) REFERENCES method\b[^;]*;",,inward
10 10
"^ALTER TABLE (?!party|address|referencecontributor|telephone)\b[^;]*\bFOREIGN KEY\b[^;]*\bREFERENCES party\b[^;]*;",,inward
11
"^ALTER TABLE (?!reference)\b[^;]*\bFOREIGN KEY\b[^;]*\bREFERENCES reference\b[^;]*;",,inward
11
"^ALTER TABLE (?!referencecontributor)\b[^;]*\bFOREIGN KEY\b[^;]*\((?:reference_id|commauthority_id|concept_reference_id)\) REFERENCES reference\b[^;]*;",,inward
12 12
"^ALTER TABLE \b[^;]*\bFOREIGN KEY\b[^;]*\bREFERENCES referencename\b[^;]*;",,inward

Also available in: Unified diff