Thanks for the answer.
Right now, I just know that after squashing some migrations,
it created a squashed migrations with CreateModel + AlterField
and AddField after that runs on 5seconds, and now that I put
all the field in the CreateModel without any AlterField or AddField,
it runs on <2seconde
Hi,
In principle it is possible to write your own or modify existing migrations
unless they are already applied.
Regarding the additional AddField() operations: in case you have e.g.
circular references between two models Django cannot add both models with
their full columns at the same time.
2 matches
Mail list logo