You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] util/records: ensure no duplicates for m2m when replacing refs
There are two ways an update of references could fail in an m2m table.
If there is a record already in the table matching the currently updated
row. Example:
```
mapping old new
1 3
2 3
Fails for:
m2m fk col2
1 x -updated-> 3 x !error
3 x
```
Or, if we have multiple ids mapped to the same new one. Example:
```
mapping old new
1 3
2 3
Fails for:
m2m fk col2
1 x -updated-> 3 x
2 x -updated-> 3 x !error
```
Part-of: #33
Co-authored-by: "Christophe Simonis" <[email protected]>
0 commit comments