You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
migrate does not recognise attribute changes for string primary key
for example:
If the original settings:
id = fields.CharField(
max_length=8,
primary_key=True,
generated=False,
null=False,
unique=True,
)
modify to:
id = fields.CharField(
max_length=16, // changed here
primary_key=True,
generated=False,
null=False,
unique=True,
)
then aerich migrate will not find this change nor will it generate a migration file.
And the migration should also update the types of the corresponding fields of all established relationships at the same time.
migrate does not recognise attribute changes for string primary key
for example:
If the original settings:
modify to:
then aerich migrate will not find this change nor will it generate a migration file.
And the migration should also update the types of the corresponding fields of all established relationships at the same time.
aerich version:
0.8.0 103470f (installed with git+https://github.com/tortoise/aerich)
The text was updated successfully, but these errors were encountered: