Open ehdgua01 opened 2 years ago
I also have this problem, but I'm going from a bigint to a normal int.
I also have this problem, change IntField to BigIntField has no effect. aerich says 'No changes detected'.
Also get "No changes detected" when trying to change id field type from IntField to UUIDField
Before:
class User(models.Model):
"""
The User model
"""
id = fields.IntField(pk=True)
After:
class User(models.Model):
"""
The User model
"""
id = fields.UUIDField(pk=True)
Hi,
The aerich automatically create
id
field as an IntField when I didn't define theid
field. But I definedid
as a BigIntField specifically but the aerich doesn't upgrade field to BigIntField if the field isn't ForeignKeyFieldBefore.
After.
But the aerich create DDL only for the
auth_server_id
column