Commit e334025
feat(vuln-id): retain legacy Vulnerability_Id model+table for a transition
Defer the destructive drop. Instead of the entity-only cutover dropping
dojo_vulnerability_id in the same release, keep the legacy Vulnerability_Id
model and table for a transition period and remove them together in a future
release, once the entity store has proven itself in production.
- Restore the Vulnerability_Id model (unused: no code path reads or writes it;
entity references are the source of truth) + its dojo.models re-export.
- Delete migration 0288 (no drop, no SeparateDatabaseAndState state/DB split,
which complicated other tooling). The model stays in Django state, matching
code — makemigrations --check + manage.py check are clean.
- The physical DROP TABLE moves to a future release; guard it there with the
invariant (abort if legacy has rows while the reference table is empty).
Validated: fresh migrate from zero through 0287 keeps both table sets; merge,
search, and vulnerability-id suites green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d59681b commit e334025
5 files changed
Lines changed: 46 additions & 54 deletions
File tree
- dojo
- db_migrations
- finding
- vulnerability
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
1438 | 1439 | | |
1439 | 1440 | | |
1440 | 1441 | | |
1441 | | - | |
1442 | | - | |
1443 | | - | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
1444 | 1480 | | |
1445 | 1481 | | |
1446 | 1482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
408 | 409 | | |
409 | 410 | | |
410 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments