Commit 5326eac
committed
fix: use stable sort for migration operations (fixes #15)
Replace List.Sort() with OrderBy() in TimescaleMigrationsModelDiffer to preserve the ependency order from base.GetDifferences(). The unstable sort was causing CreateIndex operations to appear before CreateTable operations, breaking migrations.
Added comprehensive tests for operation ordering including a regression test with 30+ operations that reliably fails with unstable sort.1 parent b1f4321 commit 5326eac
2 files changed
Lines changed: 832 additions & 3 deletions
File tree
- src/Eftdb/Internals
- tests/Eftdb.Tests/Integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
0 commit comments