robben1234
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
10 ms·
- 61.▲
- 62.▲
- 63.▲
- 64.▲
- 65.▲
- 66.▲
- 67.▲
- 68.▲
- 69.▲
- 70.▲
- 71.▲
- 72.▲
- 73.▲
- 74.▲
- 75.▲
- 76.▲
- 77.▲
- 78.▲
- 79.▲
- 80.▲
- 81.▲
How to do data migrations this way? Let's say you have a field for statuses (int) and want to add a new option in the middle of array [(1,a),(2,b),(3,d)] => [(1,a),(2,b),(3,c),(4,d)]. Where do you do Model.objects(status=3).update(s - 82.▲
- 83.▲
- 84.▲
- 85.▲
- 86.▲
- 87.▲
- 88.▲
- 89.▲
- 90.▲
More ›