Skip to content

Commit f85f47f

Browse files
authored
fix: migrations account 0025_role_description_en_role_description_es_and_more #944
fix: migrations account 0025_role_description_en_role_description_es_and_more NOTE: This migration was created automatically by the modeltranslation extension on 2025-02-04 but was not committed. Because our start-server.sh runs the makemigrations command, the migration file was created directly in the production pod and applied as 0021. This created divergences between our migration files in the repository and the actual state of the production database. We fixed this on December 17, 2025 by: - Deleting the original 0021 migration entry from the django_migrations table - Creating this migration file with the correct sequence number (0025) - Running a fake migration to register 0025 in django_migrations without re-executing the SQL
1 parent 33c3081 commit f85f47f

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# -*- coding: utf-8 -*-
2+
# ruff: noqa
3+
# Generated by Django 4.2.26 on 2025-11-27 15:13
4+
5+
# NOTE: This migration was created automatically by the modeltranslation extension on 2025-02-04 but was not committed.
6+
# Because our start-server.sh runs the makemigrations command, the migration file was created directly in the production
7+
# pod and applied as 0021. This created divergences between our migration files in the repository and the actual state of
8+
# the production database. We fixed this on December 17, 2025 by:
9+
# 1. Deleting the original 0021 migration entry from the django_migrations table
10+
# 2. Creating this migration file with the correct sequence number (0025)
11+
# 3. Running a fake migration to register 0025 in django_migrations without re-executing the SQL
12+
13+
from django.db import migrations, models
14+
15+
16+
class Migration(migrations.Migration):
17+
dependencies = [
18+
("account", "0024_account_google_sub"),
19+
]
20+
21+
operations = [
22+
migrations.AddField(
23+
model_name="role",
24+
name="description_en",
25+
field=models.TextField(blank=True, null=True, verbose_name="Description"),
26+
),
27+
migrations.AddField(
28+
model_name="role",
29+
name="description_es",
30+
field=models.TextField(blank=True, null=True, verbose_name="Description"),
31+
),
32+
migrations.AddField(
33+
model_name="role",
34+
name="description_pt",
35+
field=models.TextField(blank=True, null=True, verbose_name="Description"),
36+
),
37+
migrations.AddField(
38+
model_name="role",
39+
name="name_en",
40+
field=models.CharField(max_length=100, null=True, unique=True, verbose_name="Name"),
41+
),
42+
migrations.AddField(
43+
model_name="role",
44+
name="name_es",
45+
field=models.CharField(max_length=100, null=True, unique=True, verbose_name="Name"),
46+
),
47+
migrations.AddField(
48+
model_name="role",
49+
name="name_pt",
50+
field=models.CharField(max_length=100, null=True, unique=True, verbose_name="Name"),
51+
),
52+
migrations.AddField(
53+
model_name="team",
54+
name="description_en",
55+
field=models.TextField(blank=True, null=True, verbose_name="Description"),
56+
),
57+
migrations.AddField(
58+
model_name="team",
59+
name="description_es",
60+
field=models.TextField(blank=True, null=True, verbose_name="Description"),
61+
),
62+
migrations.AddField(
63+
model_name="team",
64+
name="description_pt",
65+
field=models.TextField(blank=True, null=True, verbose_name="Description"),
66+
),
67+
migrations.AddField(
68+
model_name="team",
69+
name="name_en",
70+
field=models.CharField(max_length=100, null=True, unique=True, verbose_name="Name"),
71+
),
72+
migrations.AddField(
73+
model_name="team",
74+
name="name_es",
75+
field=models.CharField(max_length=100, null=True, unique=True, verbose_name="Name"),
76+
),
77+
migrations.AddField(
78+
model_name="team",
79+
name="name_pt",
80+
field=models.CharField(max_length=100, null=True, unique=True, verbose_name="Name"),
81+
),
82+
]

0 commit comments

Comments
 (0)