Skip to content

Commit

Permalink
Dependencies: update django-simple-history (#11808)
Browse files Browse the repository at this point in the history
No breaking changes for us, just a migration to add indexes
https://django-simple-history.readthedocs.io/en/latest/#changes.
  • Loading branch information
stsewd authored Dec 3, 2024
1 parent 7ff6c0e commit 4767592
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 7 deletions.
33 changes: 33 additions & 0 deletions readthedocs/core/migrations/0016_update_dj_simple_history.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 4.2.16 on 2024-11-27 19:39
from django_safemigrate import Safe

from django.db import migrations, models


class Migration(migrations.Migration):
safe = Safe.before_deploy

dependencies = [
('core', '0015_remove_email_options'),
]

operations = [
migrations.AlterModelOptions(
name='historicaluser',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical user', 'verbose_name_plural': 'historical users'},
),
migrations.AlterModelOptions(
name='historicaluserprofile',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical user profile', 'verbose_name_plural': 'historical user profiles'},
),
migrations.AlterField(
model_name='historicaluser',
name='history_date',
field=models.DateTimeField(db_index=True),
),
migrations.AlterField(
model_name='historicaluserprofile',
name='history_date',
field=models.DateTimeField(db_index=True),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Generated by Django 4.2.16 on 2024-11-27 19:39
from django_safemigrate import Safe

from django.db import migrations, models


class Migration(migrations.Migration):
safe = Safe.before_deploy
dependencies = [
('organizations', '0013_update_naming'),
]

operations = [
migrations.AlterModelOptions(
name='historicalorganization',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical organization', 'verbose_name_plural': 'historical organizations'},
),
migrations.AlterModelOptions(
name='historicalteam',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical team', 'verbose_name_plural': 'historical teams'},
),
migrations.AlterField(
model_name='historicalorganization',
name='history_date',
field=models.DateTimeField(db_index=True),
),
migrations.AlterField(
model_name='historicalteam',
name='history_date',
field=models.DateTimeField(db_index=True),
),
]
33 changes: 33 additions & 0 deletions readthedocs/projects/migrations/0142_update_dj_simple_history.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 4.2.16 on 2024-11-27 19:39
from django_safemigrate import Safe

from django.db import migrations, models


class Migration(migrations.Migration):
safe = Safe.before_deploy

dependencies = [
('projects', '0141_create_addonsconfig'),
]

operations = [
migrations.AlterModelOptions(
name='historicaladdonsconfig',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical addons config', 'verbose_name_plural': 'historical addons configs'},
),
migrations.AlterModelOptions(
name='historicalproject',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical project', 'verbose_name_plural': 'historical projects'},
),
migrations.AlterField(
model_name='historicaladdonsconfig',
name='history_date',
field=models.DateTimeField(db_index=True),
),
migrations.AlterField(
model_name='historicalproject',
name='history_date',
field=models.DateTimeField(db_index=True),
),
]
3 changes: 2 additions & 1 deletion requirements/deploy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ django==4.2.16
# django-formtools
# django-polymorphic
# django-safemigrate
# django-simple-history
# django-storages
# django-structlog
# django-taggit
Expand Down Expand Up @@ -162,7 +163,7 @@ django-polymorphic==3.1.0
# via -r requirements/pip.txt
django-safemigrate==4.3
# via -r requirements/pip.txt
django-simple-history==3.0.0
django-simple-history==3.7.0
# via -r requirements/pip.txt
django-storages[boto3]==1.14.3
# via -r requirements/pip.txt
Expand Down
3 changes: 2 additions & 1 deletion requirements/docker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ django==4.2.16
# django-formtools
# django-polymorphic
# django-safemigrate
# django-simple-history
# django-storages
# django-structlog
# django-taggit
Expand Down Expand Up @@ -172,7 +173,7 @@ django-polymorphic==3.1.0
# via -r requirements/pip.txt
django-safemigrate==4.3
# via -r requirements/pip.txt
django-simple-history==3.0.0
django-simple-history==3.7.0
# via -r requirements/pip.txt
django-storages[boto3]==1.14.3
# via -r requirements/pip.txt
Expand Down
4 changes: 1 addition & 3 deletions requirements/pip.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ django-autoslug
# https://www.psycopg.org/psycopg3/docs/basic/install.html
psycopg[binary,pool]

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

djangorestframework
djangorestframework-api-key
Expand Down
3 changes: 2 additions & 1 deletion requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ django==4.2.16
# django-formtools
# django-polymorphic
# django-safemigrate
# django-simple-history
# django-storages
# django-structlog
# django-taggit
Expand Down Expand Up @@ -124,7 +125,7 @@ django-polymorphic==3.1.0
# via -r requirements/pip.in
django-safemigrate==4.3
# via -r requirements/pip.in
django-simple-history==3.0.0
django-simple-history==3.7.0
# via -r requirements/pip.in
django-storages[boto3]==1.14.3
# via -r requirements/pip.in
Expand Down
3 changes: 2 additions & 1 deletion requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ django==4.2.16
# django-formtools
# django-polymorphic
# django-safemigrate
# django-simple-history
# django-storages
# django-structlog
# django-taggit
Expand Down Expand Up @@ -169,7 +170,7 @@ django-polymorphic==3.1.0
# via -r requirements/pip.txt
django-safemigrate==4.3
# via -r requirements/pip.txt
django-simple-history==3.0.0
django-simple-history==3.7.0
# via -r requirements/pip.txt
django-storages[boto3]==1.14.3
# via -r requirements/pip.txt
Expand Down

0 comments on commit 4767592

Please sign in to comment.