Files
zulip/zerver/migrations/0747_realmcreationstatus.py
Mateusz Mandera 40b1f6eb4e confirmation: Replace RealmCreationKey - use Confirmation instead.
Fixes #20028.

There's no reason to have a special `RealmCreationKey` class - the
`Confirmation` system already does this job.

This is somewhat complicated by the need to write a migration for
`RealmCreationKey`->`Confirmation` for pre-existing, valid objects, to
avoid breaking realm creation links that haven't been used yet.
2025-08-04 18:41:15 -07:00

28 lines
856 B
Python

# Generated by Django 5.2.3 on 2025-07-04 19:08
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("zerver", "0746_alter_channelfolder_unique_together_and_more"),
]
operations = [
migrations.CreateModel(
name="RealmCreationStatus",
fields=[
(
"id",
models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
("status", models.IntegerField(default=0)),
("date_created", models.DateTimeField(default=django.utils.timezone.now)),
("presume_email_valid", models.BooleanField(default=False)),
],
),
]