Commit 331b12f
committed
fix(import): use Value.absent() for missing companion fields
Drift's Value(null) sets the column to NULL - it does NOT mean
'leave this field untouched'. Re-importing a MacDive UDDF whose
new data was missing fields the existing row already had would
silently wipe those fields. All nullable-field writes to
DivesCompanion and DiveSitesCompanion now use Value.absent()
when the source value is null, preserving existing data on
partial re-imports.
Addresses Copilot review comments 1 and 2 on PR #252.1 parent d59d043 commit 331b12f
1 file changed
Lines changed: 22 additions & 8 deletions
Lines changed: 22 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
819 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
820 | 824 | | |
821 | 825 | | |
822 | 826 | | |
| |||
1212 | 1216 | | |
1213 | 1217 | | |
1214 | 1218 | | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1221 | 1235 | | |
1222 | 1236 | | |
1223 | 1237 | | |
| |||
0 commit comments