mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Thisi and the following commit follow the approach used in
3e2ad84bbe
.
First migration requires a server restart - after that any new realms
will be created with the columns set.
The following migrations are in the next commit:
Second migration does a backfill for older realms and can run in the
background while the server is operating normally.
Third migration enforces null=False now that all realms have the columns
set.
23 lines
560 B
Python
23 lines
560 B
Python
# Generated by Django 4.2.5 on 2023-10-06 09:21
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("zerver", "0478_realm_enable_guest_user_indicator"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="realm",
|
|
name="uuid",
|
|
field=models.UUIDField(null=True, unique=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="realm",
|
|
name="uuid_owner_secret",
|
|
field=models.TextField(null=True),
|
|
),
|
|
]
|