Commit f1c4f95
authored
Alter and add migration for amendAllocated column two-part tariff review (#975)
Oppsie, I messed up!
During testing for the two-part tariff review screens, it was noted that some of the data for a charge element allocated volume wasn't persisting correctly. This is due to the table's column not being the correct data type.
The initial migration for the creation of the column calculated (now called amended_allocated) was on April 17th.
The column wasn't created properly and needed to be amended so that the decimal points weren't getting cut off.
Having checked the commit history in the repo there were no tags at the time, so rather than create a new migration, I went and edited the original migration instead.
This is where my oppsie happened.
The edited migration commit happened on the 17th (before the repo got tagged for release) however due to the length of PR I was working on, the actual PR itself didn't get merged until the 24th. The repo got tagged for a release between this on the 19th. This means the initial migration has been run on production and the edited version of the migration will not work for updating the column data type.
This PR reverts the migration file to its original state and adds a new migration that can be run to update the column data type. facepalm1 parent 45912bc commit f1c4f95
File tree
2 files changed
+20
-1
lines changed- db/migrations/public
2 files changed
+20
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 19 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 | + | |
0 commit comments