Opened 10 years ago
Closed 10 years ago
#24790 closed Bug (duplicate)
Migrations remove / add field after rename it
Description (last modified by ) ¶
When I change a model from:
class MyModel(models.Model): my_name = models.CharField(max_length=100)
to:
class MyModel(models.Model): name = models.CharField(max_length=100, db_column='my_name')
migrations removes 'my_name' and adds 'name'.
Change History (1)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #24260