Commit 93b26b7
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 2a5d23d commit 93b26b7
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 | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
826 | | - | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
827 | 831 | | |
828 | 832 | | |
829 | 833 | | |
| |||
1222 | 1226 | | |
1223 | 1227 | | |
1224 | 1228 | | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
1231 | 1245 | | |
1232 | 1246 | | |
1233 | 1247 | | |
| |||
0 commit comments