Apparent duplicates in einheitenaenderungnetzbetreiberzuordnungen
are dropped
#577
Labels
🐛 bug
Something isn't working
During import into
changed_dso_assignment
/ChangedDSOAssignment
the log saysHowever - if I understand the table right - the system operator may change multiple times so it's not a good idea to solely use
EinheitMastrNummer
as primary key:open-MaStR/open_mastr/utils/orm.py
Lines 795 to 807 in 6bc7254
To avoid losing this data, we should think of a primary key constraint on multiple columns such as
However, there could be duplicates as well so maybe it's better to include the date like this:
The table was added in #510
The text was updated successfully, but these errors were encountered: