aboutsummaryrefslogtreecommitdiffstats
path: root/api/migrations/0019_user_in_guild.py
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2018-11-19 13:17:36 -0800
committerGravatar Johannes Christ <[email protected]>2018-11-19 22:17:36 +0100
commitc58f5c749ae1f4a411dd4cc9a8395dedddf93027 (patch)
tree73d3b2e2756e4c93e49760c34e2d2771d39374c4 /api/migrations/0019_user_in_guild.py
parentSet up markdown & Dockerfile lints. (diff)
Django - Add Support for Storing Users Not in Guild (#150)
* rename Member to User * add boolean field to distinguish users in our server * mark roles as not required * fix import order lint errors * fix order of model registration
Diffstat (limited to 'api/migrations/0019_user_in_guild.py')
-rw-r--r--api/migrations/0019_user_in_guild.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/api/migrations/0019_user_in_guild.py b/api/migrations/0019_user_in_guild.py
new file mode 100644
index 00000000..fda008c4
--- /dev/null
+++ b/api/migrations/0019_user_in_guild.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.3 on 2018-11-19 20:30
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('api', '0018_user_rename'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='user',
+ name='in_guild',
+ field=models.BooleanField(default=True, help_text='Whether this user is in our server.'),
+ ),
+ ]