Commit 74b48d3
committed
fix: order platform saga query by version for deterministic migration
loadPlatformSagas queries all platform_saga_definition rows and stores
them in a map keyed by name. When multiple versions exist (e.g.,
stripe_payment v1/v2/v3), the last row scanned overwrites the entry.
Without ORDER BY version, the winning version was non-deterministic,
causing migration tests to fail when an older version won and the
similarity check against the tenant's latest-version script dropped
below threshold (69% vs required 95%).1 parent 765be40 commit 74b48d3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
0 commit comments