Skip to content

Commit

Permalink
Add missing migration and check for missing migrations (#24)
Browse files Browse the repository at this point in the history
Fix #23
  • Loading branch information
rwielk authored Sep 8, 2023
1 parent 29d9380 commit 015cc6d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
run: |
VERSION=$(poetry version -s --no-ansi -n)
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Check for missing migrations
run: |
cd testproject
poetry run python manage.py makemigrations --check
- name: Run Tests without coverage
run: |
cd testproject
Expand Down Expand Up @@ -112,6 +116,10 @@ jobs:
run: |
VERSION=$(poetry version -s --no-ansi -n)
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Check for missing migrations
run: |
cd testproject
poetry run python manage.py makemigrations --check
- name: Run Tests without coverage
if: ${{ matrix.coverage != 'yes' }}
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generated by Django 4.2.5 on 2023-09-08 20:16

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("scheduler", "0013_alter_cronjob_queue_alter_repeatablejob_queue_and_more"),
]

operations = [
migrations.AlterField(
model_name="cronjob",
name="created",
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name="cronjob",
name="modified",
field=models.DateTimeField(auto_now=True),
),
migrations.AlterField(
model_name="repeatablejob",
name="created",
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name="repeatablejob",
name="modified",
field=models.DateTimeField(auto_now=True),
),
migrations.AlterField(
model_name="scheduledjob",
name="created",
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name="scheduledjob",
name="modified",
field=models.DateTimeField(auto_now=True),
),
]

0 comments on commit 015cc6d

Please sign in to comment.