mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
The commit: 1. Adds the new field as nullable. 2. Adds code that'll create new Confirmation with the field set correctly. 3. For verifying validity of Confirmation object this still uses the old logic in get_object_from_key() to keep things functioning until we backfill the old objects in the next step. Thus this commit is deployable. Next we'll have a commit to run a backfill migration.
18 lines
395 B
Python
18 lines
395 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("confirmation", "0007_add_indexes"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="confirmation",
|
|
name="expiry_date",
|
|
field=models.DateTimeField(db_index=True, null=True),
|
|
preserve_default=False,
|
|
),
|
|
]
|