I guess it might be changed by postgres. Have you checked postgres documentation ?
On Fri, 2 Sep 2022, 18:45 Manasvi Dobariya, <[email protected]> wrote: > I have default primary key in the model which is being referenced as > foreign key in another model. Now, when I change this primary key type from > AutoField to BigAutoField, migrations for only primary keys are being > generated no migration for foreign key is generated. However, when I apply > the migration generated for primary key, foreign key type also gets changed > from int to bigint in postgres database. Is it expected that migrations for > foreign key will not get generated? > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a4cbdf90-bd62-46a7-9657-1c7ba39509c2n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a4cbdf90-bd62-46a7-9657-1c7ba39509c2n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BU2%3Dah%3Dy6dOb2uF_oUXnn4xt%3DqU7-Nvv9v9_u6hRb-5gxELqw%40mail.gmail.com.

