Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Only major gotcha is when renaming fields: it'll drop the old field then create a new field, by default. You have to do the renaming by hand, trivial but can't be forgotten... Which is why you always test on staging first of course.


Makemigrations detects if the type is the same and asks you if you renamed it.

So, when changing columns do the type change and name change in separate migrations and you won't have to do it by hand.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: