Hi,

I have a model which contains a BooleanField. I changed its name to a new 
one and updated help text as well. django generates operations RemoveField 
and AddField  in sequence for those changes. As a result of running this 
migration, original data is lost. I was confused by this behavior why 
django does not generate an operation to just rename the field by executing 
ALTER TABLE. Renaming a database field name is a common task during 
development, I think django should handle this properly without developer's 
extra work to migrate data (but probably SQLite could be an exception).

I actually did nothing special to make that migration. django version is 
1.11.13 and database backend is mariadb.

Any idea about this issue?

Thanks.

Regards,
Chenxiong Qi

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/847a9c72-7b7b-4eca-9624-989340ee82f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to