Skip to content

Commit 6989022

Browse files
committed
Redo user migrations
1 parent 7e67505 commit 6989022

File tree

2 files changed

+15
-22
lines changed

2 files changed

+15
-22
lines changed

backend/users/migrations/0001_initial.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Generated by Django 4.2.9 on 2024-02-02 12:06
22

3-
from django.db import migrations, models
4-
import django.db.models.deletion
3+
import uuid
4+
55
import django.db.models.functions.text
66
import django.utils.timezone
7+
from django.db import migrations, models
8+
79
import users.models
810

911

@@ -20,7 +22,17 @@ class Migration(migrations.Migration):
2022
migrations.CreateModel(
2123
name="User",
2224
fields=[
23-
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
25+
(
26+
"id",
27+
models.UUIDField(
28+
default=uuid.uuid4,
29+
editable=False,
30+
primary_key=True,
31+
serialize=False,
32+
unique=True,
33+
verbose_name="ID",
34+
),
35+
),
2436
("password", models.CharField(max_length=128, verbose_name="password")),
2537
("last_login", models.DateTimeField(blank=True, null=True, verbose_name="last login")),
2638
(

backend/users/migrations/0002_alter_user_id.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)