Skip to content

Commit 1e4e2eb

Browse files
fix migrations
1 parent 612ecc8 commit 1e4e2eb

6 files changed

Lines changed: 86 additions & 101 deletions

documentcloud/users/migrations/0001_initial_squashed_0010_user_bio_alter_user_email_alter_user_username.py renamed to documentcloud/users/migrations/0001_squashed_0007_auto_20211102_1707.py

Lines changed: 5 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
# Generated by Django 5.2.13 on 2026-04-14 18:44
2-
3-
import django.contrib.postgres.fields.citext
41
import django.contrib.postgres.operations
52
import django.utils.timezone
6-
import documentcloud.core.fields
73
import documentcloud.users.managers
84
import squarelet_auth.fields
95
import uuid
@@ -20,16 +16,15 @@ class Migration(migrations.Migration):
2016
("users", "0005_auto_20200523_1534"),
2117
("users", "0006_auto_20200925_2001"),
2218
("users", "0007_auto_20211102_1707"),
23-
("users", "0009_user_mailkey"),
24-
("users", "0010_user_bio_alter_user_email_alter_user_username"),
2519
]
2620

21+
initial = True
22+
2723
dependencies = [
2824
("auth", "0011_update_proxy_permissions"),
2925
]
3026

3127
operations = [
32-
django.contrib.postgres.operations.CITextExtension(),
3328
django.contrib.postgres.operations.CreateCollation(
3429
name="case_insensitive",
3530
locale="und-u-ks-level2",
@@ -146,7 +141,7 @@ class Migration(migrations.Migration):
146141
),
147142
(
148143
"created_at",
149-
documentcloud.core.fields.AutoCreatedField(
144+
squarelet_auth.fields.AutoCreatedField(
150145
default=django.utils.timezone.now,
151146
editable=False,
152147
help_text="Timestamp of when the user was created",
@@ -155,7 +150,7 @@ class Migration(migrations.Migration):
155150
),
156151
(
157152
"updated_at",
158-
documentcloud.core.fields.AutoLastModifiedField(
153+
squarelet_auth.fields.AutoLastModifiedField(
159154
default=django.utils.timezone.now,
160155
editable=False,
161156
help_text="Timestamp of when the user was last updated",
@@ -204,26 +199,6 @@ class Migration(migrations.Migration):
204199
migrations.RunSQL(
205200
sql="ALTER SEQUENCE users_user_id_seq RESTART WITH 100000",
206201
),
207-
migrations.AlterField(
208-
model_name="user",
209-
name="created_at",
210-
field=squarelet_auth.fields.AutoCreatedField(
211-
default=django.utils.timezone.now,
212-
editable=False,
213-
help_text="Timestamp of when the user was created",
214-
verbose_name="created at",
215-
),
216-
),
217-
migrations.AlterField(
218-
model_name="user",
219-
name="updated_at",
220-
field=squarelet_auth.fields.AutoLastModifiedField(
221-
default=django.utils.timezone.now,
222-
editable=False,
223-
help_text="Timestamp of when the user was last updated",
224-
verbose_name="updated at",
225-
),
226-
),
227202
migrations.AddField(
228203
model_name="user",
229204
name="document_language",
@@ -454,22 +429,4 @@ class Migration(migrations.Migration):
454429
verbose_name="language",
455430
),
456431
),
457-
migrations.AddField(
458-
model_name="user",
459-
name="mailkey",
460-
field=models.UUIDField(
461-
help_text="Mail key for uploading documents via email",
462-
null=True,
463-
verbose_name="mailkey",
464-
),
465-
),
466-
migrations.AddField(
467-
model_name="user",
468-
name="bio",
469-
field=models.TextField(
470-
blank=True,
471-
help_text="Public bio for the user, in Markdown",
472-
verbose_name="bio",
473-
),
474-
),
475-
]
432+
]
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
from django.db import migrations, models
2+
3+
4+
class Migration(migrations.Migration):
5+
6+
replaces = [
7+
("users", "0008_user_active_addons"),
8+
("users", "0009_user_mailkey"),
9+
("users", "0010_user_bio_alter_user_email_alter_user_username"),
10+
]
11+
12+
dependencies = [
13+
("addons", "0005_auto_20220330_1908"),
14+
("users", "0001_squashed_0007_auto_20211102_1707"),
15+
]
16+
17+
operations = [
18+
migrations.AddField(
19+
model_name="user",
20+
name="active_addons",
21+
field=models.ManyToManyField(
22+
help_text="Add-Ons shown for this user",
23+
related_name="users",
24+
to="addons.addon",
25+
verbose_name="active add-ons",
26+
),
27+
),
28+
migrations.AddField(
29+
model_name="user",
30+
name="mailkey",
31+
field=models.UUIDField(
32+
help_text="Mail key for uploading documents via email",
33+
null=True,
34+
verbose_name="mailkey",
35+
),
36+
),
37+
migrations.AddField(
38+
model_name="user",
39+
name="bio",
40+
field=models.TextField(
41+
blank=True,
42+
help_text="Public bio for the user, in Markdown",
43+
verbose_name="bio",
44+
),
45+
),
46+
]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated by Django 3.2.9 on 2022-03-30 19:14
2+
3+
4+
# Django
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
("addons", "0005_auto_20220330_1908"),
12+
("users", "0007_auto_20211102_1707"),
13+
]
14+
15+
operations = [
16+
migrations.AddField(
17+
model_name="user",
18+
name="active_addons",
19+
field=models.ManyToManyField(
20+
help_text="Add-Ons shown for this user",
21+
related_name="users",
22+
to="addons.AddOn",
23+
verbose_name="active add-ons",
24+
),
25+
),
26+
]
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
# Generated by Django 3.2.9 on 2022-05-27 13:30
22

3+
# Django
34
from django.db import migrations, models
45

56

67
class Migration(migrations.Migration):
78

89
dependencies = [
9-
('users', '0007_auto_20211102_1707'),
10+
("users", "0008_user_active_addons"),
1011
]
1112

1213
operations = [
1314
migrations.AddField(
14-
model_name='user',
15-
name='mailkey',
16-
field=models.UUIDField(help_text='Mail key for uploading documents via email', null=True, verbose_name='mailkey'),
15+
model_name="user",
16+
name="mailkey",
17+
field=models.UUIDField(
18+
help_text="Mail key for uploading documents via email",
19+
null=True,
20+
verbose_name="mailkey",
21+
),
1722
),
1823
]

documentcloud/users/migrations/0013_user_active_addons.py

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

documentcloud/users/migrations/0014_merge_20260414_1910.py

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

0 commit comments

Comments
 (0)