I've been confused,if there's any way how to order column when migrate in Django, In the first place In my case I don't have is_person
in my models then eventually I want to add is_person
after paid in my models like the example below in models.py, then the problem is even I correctly ordered the value in my models when migrate the is_person
always goes to the last. Is there any trick how to add column after paid without deleting your whole database?
Models.py
class Person(models.Model):
covid_id = models.CharField(max_length=50,blank=True, null=True)
is_person = models.CharField(max_length=50,blank=True, null=True) // I want to add this
paid_by = models.CharField(max_length=50,blank=True, null=True)
date_receive = models.DateField(null=True, blank=True)
remarks = models.CharField(max_length=1500,blank=True, null=True)
eligible = models.CharField(max_length=50,blank=True, null=True)
amount_paid = models.CharField(max_length=60,blank=True, null=True)