Skip to content

Commit 015cc6d

Browse files
authored
Add missing migration and check for missing migrations (#24)
Fix #23
1 parent 29d9380 commit 015cc6d

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
run: |
6262
VERSION=$(poetry version -s --no-ansi -n)
6363
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
64+
- name: Check for missing migrations
65+
run: |
66+
cd testproject
67+
poetry run python manage.py makemigrations --check
6468
- name: Run Tests without coverage
6569
run: |
6670
cd testproject
@@ -112,6 +116,10 @@ jobs:
112116
run: |
113117
VERSION=$(poetry version -s --no-ansi -n)
114118
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
119+
- name: Check for missing migrations
120+
run: |
121+
cd testproject
122+
poetry run python manage.py makemigrations --check
115123
- name: Run Tests without coverage
116124
if: ${{ matrix.coverage != 'yes' }}
117125
run: |
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Generated by Django 4.2.5 on 2023-09-08 20:16
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("scheduler", "0013_alter_cronjob_queue_alter_repeatablejob_queue_and_more"),
9+
]
10+
11+
operations = [
12+
migrations.AlterField(
13+
model_name="cronjob",
14+
name="created",
15+
field=models.DateTimeField(auto_now_add=True),
16+
),
17+
migrations.AlterField(
18+
model_name="cronjob",
19+
name="modified",
20+
field=models.DateTimeField(auto_now=True),
21+
),
22+
migrations.AlterField(
23+
model_name="repeatablejob",
24+
name="created",
25+
field=models.DateTimeField(auto_now_add=True),
26+
),
27+
migrations.AlterField(
28+
model_name="repeatablejob",
29+
name="modified",
30+
field=models.DateTimeField(auto_now=True),
31+
),
32+
migrations.AlterField(
33+
model_name="scheduledjob",
34+
name="created",
35+
field=models.DateTimeField(auto_now_add=True),
36+
),
37+
migrations.AlterField(
38+
model_name="scheduledjob",
39+
name="modified",
40+
field=models.DateTimeField(auto_now=True),
41+
),
42+
]

0 commit comments

Comments
 (0)