-
-
Notifications
You must be signed in to change notification settings - Fork 113
The type of the id field hasn't changed #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
documentation
Improvements or additions to documentation
Comments
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) |
Should show warning that pk field type migration does not support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The aerich automatically create
id
field as an IntField when I didn't define theid
field.But I defined
id
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
columnThe text was updated successfully, but these errors were encountered: