Opened 10 years ago

Last modified 10 years ago

#24790 closed Bug

Migrations remove / add field after rename it — at Initial Version

Reported by: Daniel Owned by: nobody
Component: Migrations Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 (0)

Note: See TracTickets for help on using tickets.
Back to Top