Skip to content

Commit cb6acf0

Browse files
committed
Fix migrations
1 parent b7e8d46 commit cb6acf0

4 files changed

Lines changed: 33 additions & 116 deletions

hypha/apply/funds/migrations/0124_coapplicantinvite_coapplicant.py renamed to hypha/apply/funds/migrations/0124_add_coapplicantinvite_coapplicant.py

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 4.2.20 on 2025-04-23 12:47
1+
# Generated by Django 4.2.20 on 2025-05-14 09:38
22

33
from django.conf import settings
44
from django.db import migrations, models
@@ -25,8 +25,32 @@ class Migration(migrations.Migration):
2525
),
2626
),
2727
("invited_user_email", models.EmailField(max_length=254)),
28-
("token", models.CharField(max_length=256, unique=True)),
29-
("is_used", models.BooleanField(default=False)),
28+
(
29+
"status",
30+
models.CharField(
31+
choices=[
32+
("pending", "Pending"),
33+
("accepted", "Accepted"),
34+
("rejected", "Rejected"),
35+
("expired", "Expired"),
36+
],
37+
default="pending",
38+
max_length=20,
39+
),
40+
),
41+
(
42+
"role",
43+
models.CharField(
44+
choices=[
45+
("read_only", "Read Only"),
46+
("comment", "Comment"),
47+
("edit", "Edit"),
48+
],
49+
default="read_only",
50+
),
51+
),
52+
("responded_on", models.DateTimeField(blank=True, null=True)),
53+
("invited_at", models.DateTimeField(blank=True, null=True)),
3054
("created_at", models.DateTimeField(auto_now_add=True)),
3155
(
3256
"invited_by",
@@ -63,20 +87,18 @@ class Migration(migrations.Migration):
6387
verbose_name="ID",
6488
),
6589
),
66-
("role", models.JSONField(default=list)),
6790
(
68-
"status",
91+
"role",
6992
models.CharField(
7093
choices=[
71-
("accepted", "Accepted"),
72-
("rejected", "Rejected"),
73-
("expired", "Expired"),
94+
("read_only", "Read Only"),
95+
("comment", "Comment"),
96+
("edit", "Edit"),
7497
],
75-
default="accepted",
76-
max_length=20,
98+
default="read_only",
7799
),
78100
),
79-
("accepted_on", models.DateTimeField(blank=True, null=True)),
101+
("created_at", models.DateTimeField(auto_now_add=True, null=True)),
80102
(
81103
"invite",
82104
models.OneToOneField(

hypha/apply/funds/migrations/0125_remove_coapplicant_accepted_on_and_more.py

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

hypha/apply/funds/migrations/0126_alter_coapplicant_role.py

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

hypha/apply/funds/migrations/0127_coapplicantinvite_invited_at_coapplicantinvite_role.py

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

0 commit comments

Comments
 (0)