From 015cc6d2670a10443305389960d9638612cdf06c Mon Sep 17 00:00:00 2001 From: Raiko Wielk <83689109+rwielk@users.noreply.github.com> Date: Fri, 8 Sep 2023 23:20:21 +0200 Subject: [PATCH] Add missing migration and check for missing migrations (#24) Fix #23 --- .github/workflows/test.yml | 8 ++++ ...created_alter_cronjob_modified_and_more.py | 42 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 scheduler/migrations/0014_alter_cronjob_created_alter_cronjob_modified_and_more.py diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f8e000..4b0aff3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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: | diff --git a/scheduler/migrations/0014_alter_cronjob_created_alter_cronjob_modified_and_more.py b/scheduler/migrations/0014_alter_cronjob_created_alter_cronjob_modified_and_more.py new file mode 100644 index 0000000..c488e1c --- /dev/null +++ b/scheduler/migrations/0014_alter_cronjob_created_alter_cronjob_modified_and_more.py @@ -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), + ), + ]