Manasvi Dobariya
unread,Sep 2, 2022, 9:15:11 AM9/2/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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?