so I've already created models in Django for my db, but now want to rename the model. I've change the names in the Meta class and then make migrations/migrate but that just creates brand new tables.
I've also tried schemamigration but also not working, I'm using Django 1.7
Here's my model
class ResultType(models.Model):
name = models.CharField(max_length=150)
ut = models.DateTimeField(default=datetime.now)
class Meta:
db_table = u'result_type'
def __unicode__(self):
return self.name
Cheers
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…