Commit 93d88c7
fix: default standard gyro/cockpit/myomer when MegaMek omits them
MegaMek doesn't store gyro_type/cockpit_type/myomer_type when they are
standard, leaving 3509 of 4225 mech rows with NULL FKs. Default to
standard component type in scraper and backfill existing rows via
migration. All three now at 100% match rate.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4e106b5 commit 93d88c7
3 files changed
Lines changed: 25 additions & 6 deletions
File tree
- crates/scraper/src
- migrations
- seed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
307 | 309 | | |
308 | | - | |
309 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
310 | 313 | | |
311 | | - | |
312 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
313 | 317 | | |
314 | | - | |
| 318 | + | |
315 | 319 | | |
316 | 320 | | |
317 | 321 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Binary file not shown.
0 commit comments