healthchecks_healthchecks/hc/api/migrations/0105_alter_notification_code.py
Pēteris Caune 26a57343b1
Add a data migration to fill null api_notification.code values
Using model's default didn't quite work, as Django tried to use
the same UUID for all rows.
2024-05-17 10:43:46 +03:00

20 lines
436 B
Python

# Generated by Django 5.0.4 on 2024-05-17 07:41
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("api", "0104_fill_notification_code"),
]
operations = [
migrations.AlterField(
model_name="notification",
name="code",
field=models.UUIDField(default=uuid.uuid4, editable=False, unique=True),
),
]