alphagov / trade-tariff-backend

Enabling the population and distribution via API of UK Customs tariffs and duties
MIT License
7 stars 6 forks source link

Removing PK on validity_start_date for FootnoteAssociationGoodsNomenclature #194

Closed matthewford closed 10 years ago

matthewford commented 10 years ago

This is to fix an error with the TARIC sync which failed on 2014-07-23 where a FootnoteAssociationGoodsNomenclature's validity_start_date was being updated, this causes an issue because when updating we use the primary key to fetch the record being updated. As the attribute being updated was part of the primary key, the record was not found and halted the sync.

We will have to review all other instances of validity_start_date in a primary key to ensure that this doesn't halt the import in the future.