Skip to content

Commit

Permalink
v9.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny Vedrilla committed Nov 17, 2023
1 parent 87dbd84 commit e249ac3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Run pre-commit hooks
run: pre-commit run --all-files --hook-stage push


validate_migrations:
name: Validate migrations
runs-on: ubuntu-22.04
Expand All @@ -35,12 +35,9 @@ jobs:
- name: Install dependencies
run: python -m pip install -U pip-tools && pip-compile --extra dev,drf,graphql,sentry,view-layer, -o requirements.txt pyproject.toml --resolver=backtracking && pip-sync

- name: todo show migrations
run: python manage.py makemigrations && cat testapp/migrations/0002_alter_commoninfobasedmodel_created_by_and_more.py

- name: Validate migration integrity
run: python manage.py makemigrations --check --dry-run


tests:
name: Python ${{ matrix.python-version }}, django ${{ matrix.django-version }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The migration is really simple, just:
### Setup package for development
- Create a Python virtualenv and activate it
- Install "pip-tools" with `pip install pip-tools`
- Install "pip-tools" with `pip install -U pip-tools`
- Compile the requirements with `pip-compile --extra dev,drf,graphql,sentry,view-layer, -o requirements.txt pyproject.toml --resolver=backtracking`
- Sync the dependencies with your virtualenv with `pip-sync`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dev = [
'sphinx-rtd-theme==1.0.0',
'm2r2==0.3.1',
'mistune<2.0.0',
'ambient-package-update~=23.10.8',
'ambient-package-update~=23.11.1',
'gevent~=23.9',
]
drf = [
Expand Down
4 changes: 2 additions & 2 deletions testapp/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Migration(migrations.Migration):
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name='testapp_commoninfobasedmodel_created',
related_name='%(app_label)s_%(class)s_created',
to=settings.AUTH_USER_MODEL,
verbose_name='Created by',
),
Expand All @@ -141,7 +141,7 @@ class Migration(migrations.Migration):
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name='testapp_commoninfobasedmodel_lastmodified',
related_name='%(app_label)s_%(class)s_lastmodified',
to=settings.AUTH_USER_MODEL,
verbose_name='Last modified by',
),
Expand Down

0 comments on commit e249ac3

Please sign in to comment.