Closed paulschreiber closed 1 month ago
Have Soil ID cache use BaseModel. This gives us a date so we can delete stale entries.
I tried migrating the data, but got key errors:
django.db.utils.IntegrityError: duplicate key value violates unique constraint "coordinate_index" DETAIL: Key (latitude, longitude)=(37.831516, -122.40759) already exists.
so I deleted it instead.
This also avoids the uuids needing to be generated using Python code and migrated in three steps. See https://stackoverflow.com/questions/35281003/django-migration-with-uuid-field-generates-duplicated-values
Description
Have Soil ID cache use BaseModel. This gives us a date so we can delete stale entries.
I tried migrating the data, but got key errors:
so I deleted it instead.
This also avoids the uuids needing to be generated using Python code and migrated in three steps. See https://stackoverflow.com/questions/35281003/django-migration-with-uuid-field-generates-duplicated-values