Commit 9e204be
fix(moveExpenses): clear accounting category when moving to different host
When expenses are moved to an account under a different host, the
AccountingCategoryId is now cleared since accounting categories belong
to specific hosts and would be invalid after the move.
The migration log now also captures the previous AccountingCategoryId
for audit purposes.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 878a16a commit 9e204be
File tree
2 files changed
+65
-5
lines changed- server/graphql/common
- test/server/graphql/v2/mutation
2 files changed
+65
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4152 | 4152 | | |
4153 | 4153 | | |
4154 | 4154 | | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
4155 | 4161 | | |
4156 | 4162 | | |
4157 | 4163 | | |
| |||
4162 | 4168 | | |
4163 | 4169 | | |
4164 | 4170 | | |
4165 | | - | |
| 4171 | + | |
4166 | 4172 | | |
4167 | | - | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
4168 | 4177 | | |
4169 | 4178 | | |
4170 | 4179 | | |
| |||
4231 | 4240 | | |
4232 | 4241 | | |
4233 | 4242 | | |
4234 | | - | |
| 4243 | + | |
4235 | 4244 | | |
4236 | 4245 | | |
4237 | 4246 | | |
| |||
4243 | 4252 | | |
4244 | 4253 | | |
4245 | 4254 | | |
4246 | | - | |
| 4255 | + | |
| 4256 | + | |
| 4257 | + | |
4247 | 4258 | | |
4248 | 4259 | | |
4249 | 4260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
266 | 315 | | |
267 | 316 | | |
268 | 317 | | |
| |||
0 commit comments