diff options
| author | 2019-08-23 15:00:15 +0200 | |
|---|---|---|
| committer | 2019-08-23 15:00:15 +0200 | |
| commit | f6c90633bc415aa1a1e625fb078212e9e015ba37 (patch) | |
| tree | b211be1ec8e4b7ef38b824973716241e5bc6316b /pydis_site/apps/api/migrations | |
| parent | Properly handle `actor` via `PrimaryKeyRelatedField`. (diff) | |
| parent | Making the comparison operators for Role act like those for d.py Role objects (diff) | |
Merge pull request #236 from python-discord/django-roles-api-add-position
Add position field to Role model
Diffstat (limited to 'pydis_site/apps/api/migrations')
| -rw-r--r-- | pydis_site/apps/api/migrations/0039_add_position_field_to_role.py | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/pydis_site/apps/api/migrations/0039_add_position_field_to_role.py b/pydis_site/apps/api/migrations/0039_add_position_field_to_role.py new file mode 100644 index 00000000..b6b27ff2 --- /dev/null +++ b/pydis_site/apps/api/migrations/0039_add_position_field_to_role.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.3 on 2019-08-15 11:42 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + +    dependencies = [ +        ('api', '0038_merge_20190719_1817'), +    ] + +    operations = [ +        migrations.AddField( +            model_name='role', +            name='position', +            field=models.IntegerField(default=-1, help_text='The position of the role in the role hierarchy of the Discord Guild.'), +        ), +        migrations.AlterField( +            model_name='role', +            name='position', +            field=models.IntegerField(help_text='The position of the role in the role hierarchy of the Discord Guild.'), +        ) +    ] | 
