Skip to content

Commit 4767592

Browse files
authored
Dependencies: update django-simple-history (#11808)
No breaking changes for us, just a migration to add indexes https://django-simple-history.readthedocs.io/en/latest/#changes.
1 parent 7ff6c0e commit 4767592

File tree

8 files changed

+107
-7
lines changed

8 files changed

+107
-7
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Generated by Django 4.2.16 on 2024-11-27 19:39
2+
from django_safemigrate import Safe
3+
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
safe = Safe.before_deploy
9+
10+
dependencies = [
11+
('core', '0015_remove_email_options'),
12+
]
13+
14+
operations = [
15+
migrations.AlterModelOptions(
16+
name='historicaluser',
17+
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical user', 'verbose_name_plural': 'historical users'},
18+
),
19+
migrations.AlterModelOptions(
20+
name='historicaluserprofile',
21+
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical user profile', 'verbose_name_plural': 'historical user profiles'},
22+
),
23+
migrations.AlterField(
24+
model_name='historicaluser',
25+
name='history_date',
26+
field=models.DateTimeField(db_index=True),
27+
),
28+
migrations.AlterField(
29+
model_name='historicaluserprofile',
30+
name='history_date',
31+
field=models.DateTimeField(db_index=True),
32+
),
33+
]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Generated by Django 4.2.16 on 2024-11-27 19:39
2+
from django_safemigrate import Safe
3+
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
safe = Safe.before_deploy
9+
dependencies = [
10+
('organizations', '0013_update_naming'),
11+
]
12+
13+
operations = [
14+
migrations.AlterModelOptions(
15+
name='historicalorganization',
16+
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical organization', 'verbose_name_plural': 'historical organizations'},
17+
),
18+
migrations.AlterModelOptions(
19+
name='historicalteam',
20+
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical team', 'verbose_name_plural': 'historical teams'},
21+
),
22+
migrations.AlterField(
23+
model_name='historicalorganization',
24+
name='history_date',
25+
field=models.DateTimeField(db_index=True),
26+
),
27+
migrations.AlterField(
28+
model_name='historicalteam',
29+
name='history_date',
30+
field=models.DateTimeField(db_index=True),
31+
),
32+
]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Generated by Django 4.2.16 on 2024-11-27 19:39
2+
from django_safemigrate import Safe
3+
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
safe = Safe.before_deploy
9+
10+
dependencies = [
11+
('projects', '0141_create_addonsconfig'),
12+
]
13+
14+
operations = [
15+
migrations.AlterModelOptions(
16+
name='historicaladdonsconfig',
17+
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical addons config', 'verbose_name_plural': 'historical addons configs'},
18+
),
19+
migrations.AlterModelOptions(
20+
name='historicalproject',
21+
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical project', 'verbose_name_plural': 'historical projects'},
22+
),
23+
migrations.AlterField(
24+
model_name='historicaladdonsconfig',
25+
name='history_date',
26+
field=models.DateTimeField(db_index=True),
27+
),
28+
migrations.AlterField(
29+
model_name='historicalproject',
30+
name='history_date',
31+
field=models.DateTimeField(db_index=True),
32+
),
33+
]

requirements/deploy.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ django==4.2.16
120120
# django-formtools
121121
# django-polymorphic
122122
# django-safemigrate
123+
# django-simple-history
123124
# django-storages
124125
# django-structlog
125126
# django-taggit
@@ -162,7 +163,7 @@ django-polymorphic==3.1.0
162163
# via -r requirements/pip.txt
163164
django-safemigrate==4.3
164165
# via -r requirements/pip.txt
165-
django-simple-history==3.0.0
166+
django-simple-history==3.7.0
166167
# via -r requirements/pip.txt
167168
django-storages[boto3]==1.14.3
168169
# via -r requirements/pip.txt

requirements/docker.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ django==4.2.16
130130
# django-formtools
131131
# django-polymorphic
132132
# django-safemigrate
133+
# django-simple-history
133134
# django-storages
134135
# django-structlog
135136
# django-taggit
@@ -172,7 +173,7 @@ django-polymorphic==3.1.0
172173
# via -r requirements/pip.txt
173174
django-safemigrate==4.3
174175
# via -r requirements/pip.txt
175-
django-simple-history==3.0.0
176+
django-simple-history==3.7.0
176177
# via -r requirements/pip.txt
177178
django-storages[boto3]==1.14.3
178179
# via -r requirements/pip.txt

requirements/pip.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ django-autoslug
1010
# https://www.psycopg.org/psycopg3/docs/basic/install.html
1111
psycopg[binary,pool]
1212

13-
# 3.1.0 includes changes that require running `makemigrations`
14-
# https://django-simple-history.readthedocs.io/en/latest/#changes
15-
django-simple-history==3.0.0
13+
django-simple-history
1614

1715
djangorestframework
1816
djangorestframework-api-key

requirements/pip.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ django==4.2.16
8282
# django-formtools
8383
# django-polymorphic
8484
# django-safemigrate
85+
# django-simple-history
8586
# django-storages
8687
# django-structlog
8788
# django-taggit
@@ -124,7 +125,7 @@ django-polymorphic==3.1.0
124125
# via -r requirements/pip.in
125126
django-safemigrate==4.3
126127
# via -r requirements/pip.in
127-
django-simple-history==3.0.0
128+
django-simple-history==3.7.0
128129
# via -r requirements/pip.in
129130
django-storages[boto3]==1.14.3
130131
# via -r requirements/pip.in

requirements/testing.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ django==4.2.16
125125
# django-formtools
126126
# django-polymorphic
127127
# django-safemigrate
128+
# django-simple-history
128129
# django-storages
129130
# django-structlog
130131
# django-taggit
@@ -169,7 +170,7 @@ django-polymorphic==3.1.0
169170
# via -r requirements/pip.txt
170171
django-safemigrate==4.3
171172
# via -r requirements/pip.txt
172-
django-simple-history==3.0.0
173+
django-simple-history==3.7.0
173174
# via -r requirements/pip.txt
174175
django-storages[boto3]==1.14.3
175176
# via -r requirements/pip.txt

0 commit comments

Comments
 (0)