aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/migrations
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-10-29 03:19:37 +0400
committerGravatar Hassan Abouelela <[email protected]>2021-10-29 03:19:37 +0400
commit367c01a7b3cd5cc5ee25644ae92f917ceb00562c (patch)
tree3be351f403e75d56eb7b08a5e20aa432b2a64ec5 /pydis_site/apps/api/migrations
parentMerge pull request #617 from python-discord/mbaruh-patch-1 (diff)
Adds Failures Field To Reminders
Adds an integer field to reminders, to keep track of how many failed attempts at delivering the reminder were made. Updates documentation and serialization. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/apps/api/migrations')
-rw-r--r--pydis_site/apps/api/migrations/0074_reminder_failures.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/pydis_site/apps/api/migrations/0074_reminder_failures.py b/pydis_site/apps/api/migrations/0074_reminder_failures.py
new file mode 100644
index 00000000..2860046e
--- /dev/null
+++ b/pydis_site/apps/api/migrations/0074_reminder_failures.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.0.14 on 2021-10-27 17:44
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('api', '0073_otn_allow_GT_and_LT'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='reminder',
+ name='failures',
+ field=models.IntegerField(default=0, help_text='Number of times we attempted to send the reminder and failed.'),
+ ),
+ ]