This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
Duplicate organization and repository rows under star history table #17
Labels
bug
Something isn't working
Bug report
Been noticing a couple of rows with repeated organization and repository name pairs (not too sure if its from testing, but the data in this table is not that important since its a cache so not to worry). I did verify that the updating of the cache is working without inserting new rows though. Two possible solutions:
Do a check if a row with the organization and repo exists before inserting
Change PK of the table to be organization and repository to enforce this from the DB
Personally feel that option 2 is more optimal - i guess this is one of the instances which the table editor should support creation of more than 1 PK for a table as well haha
For now, we can do it via the second method by good ol' SQL query
The text was updated successfully, but these errors were encountered: