-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
[models] change capacity in ball column name to ability #533
base: master
Are you sure you want to change the base?
[models] change capacity in ball column name to ability #533
Conversation
Just a note, all migrations are currently on hold until we get rid of tortoise |
capacity_logic = models.JSONField( | ||
help_text="Effect of this capacity", blank=True, default=dict | ||
ability_description = models.CharField( | ||
max_length=256, help_text="Description of the countryball's ability", default=None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you adding default=None
to name and description? Columns aren't nullable so this will fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because otherwise django wouldn't generate the migration, should i make the fields not null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renaming it, avoids confusion especially with new self hosters.
Tasks: