~linuxgoose/bocpress

ref: bf5a4f305fc50b4b2b27ae59dc0e9ad9ad673c2a bocpress/main/migrations/0095_auto_20231109_2111.py -rw-r--r-- 504 bytes
bf5a4f30Jordan Robinson add bold to username in dashboard welcome text 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Generated by Django 4.2.7 on 2023-11-09 21:11

import uuid

from django.db import migrations


def gen_uuid(apps, schema_editor):
    Onboard = apps.get_model("main", "Onboard")
    for row in Onboard.objects.all():
        row.code = uuid.uuid4()
        row.save(update_fields=["code"])


class Migration(migrations.Migration):
    dependencies = [
        ("main", "0094_onboard_code"),
    ]

    operations = [
        migrations.RunPython(gen_uuid, reverse_code=migrations.RunPython.noop),
    ]