The table design is,
Table A:
- ID - Type Int - Primary Key
Table B:
- ForeignKey(A)
How can I use south to change the type of ID in table A from Int to BigInt ?
Edited: I tried the following and it did not work.
Alter the ID type to BigInt
db.alter_column('A', 'ID', models.BigIntegerField(primary_key = True))
Error : DatabaseError: (1025, "Error on rename of './app/#sql-d7_3f8' to './app/A' (errno: 150 - Foreign key constraint is incorrectly formed)")
Deleting the PK, so that it can be recreated again
db.delete_primary_key('A')
Error: DatabaseError: (1075, 'Incorrect table definition; there can be only one auto column and it must be defined as a key')