Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
confirmation: Migration to add expiry_date - last step.
Mateusz Mandera9caa71c7fd01
diff --git a/confirmation/migrations/0010_alter_confirmation_expiry_date.py b/confirmation/migrations/0010_alter_confirmation_expiry_date.pynew file mode 100644index 00000000000..793fcfeda5a--- /dev/null+++ b/confirmation/migrations/0010_alter_confirmation_expiry_date.py@@ -0,0 +1,18 @@+# Generated by Django 3.2.5 on 2021-08-02 19:03++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ("confirmation", "0009_confirmation_expiry_date_backfill"),+ ]++ operations = [+ migrations.AlterField(+ model_name="confirmation",+ name="expiry_date",+ field=models.DateTimeField(db_index=True),+ ),+ ]diff --git a/confirmation/models.py b/confirmation/models.pyindex c9f774bf81c..1b851118d46 100644--- a/confirmation/models.py+++ b/confirmation/models.py@@ -133,7 +133,7 @@ class Confirmation(models.Model):content_object = GenericForeignKey("content_type", "object_id")date_sent: datetime.datetime = models.DateTimeField(db_index=True)confirmation_key: str = models.CharField(max_length=40, db_index=True)- expiry_date: datetime.datetime = models.DateTimeField(db_index=True, null=True)+ expiry_date: datetime.datetime = models.DateTimeField(db_index=True)realm: Optional[Realm] = models.ForeignKey(Realm, null=True, on_delete=CASCADE)# The following list is the set of valid types