regen-network / regen-server

:seedling: Regen web server and database
https://api.regen.network
6 stars 5 forks source link

Fix duplicate IRI key error in `upload` table #449

Closed blushi closed 3 months ago

blushi commented 4 months ago

Currently, as soon as a user tries to upload the same file twice, it will fail because this results in the same file IRI being added to the upload table which has the IRI as PK. We should just use a regular UUID as PK.

ref: https://www.notion.so/regennetwork/Engineering-Weekly-Architecture-2024-03-11-c1706e11d5c74fb5848d6f817bf4ca79