Commit e623079
committed
networkDesign: change DB data type of fitness from numeric to double
The `decimal` knex data type converts by default to a `numeric(8,2)` in
postgres, effectively making maxing the value to 6 digits with 2
decimals. We use `double` instead to support any floating point value for
the fitness score, as it can be quite high for large simulations, for
example, with many thousands OD trip pairs, the value can be in the
millions or tens of millions. This converts to `double precision` in postgres.1 parent 42c6326 commit e623079
File tree
1 file changed
+34
-0
lines changed- packages/transition-backend/src/models/db/migrations
1 file changed
+34
-0
lines changedLines changed: 34 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 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments