2024-09-29 22:29:02 +02:00
|
|
|
from django.db import migrations, models
|
|
|
|
from django.db.models.functions import Upper
|
2020-07-15 17:25:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0294_remove_userprofile_pointer"),
|
2020-07-15 17:25:47 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2024-09-29 22:29:02 +02:00
|
|
|
migrations.AddConstraint(
|
|
|
|
model_name="userprofile",
|
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
models.F("realm"),
|
|
|
|
Upper(models.F("email")),
|
|
|
|
name="zerver_userprofile_realm_id_email_uniq",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
|
|
|
model_name="userprofile",
|
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
models.F("realm"),
|
|
|
|
Upper(models.F("delivery_email")),
|
|
|
|
name="zerver_userprofile_realm_id_delivery_email_uniq",
|
|
|
|
),
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-07-15 17:25:47 +02:00
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="userprofile",
|
2020-07-15 17:25:47 +02:00
|
|
|
unique_together=set(),
|
|
|
|
),
|
|
|
|
]
|