Merge pull request #1554 from ae-utbm/fix-migrations

Fix migrations
This commit is contained in:
thomas girod authored and GitHub committed 2026-11-20 10:31:58 +01:00
commit 0980c69593
4 files changed
+41 -4

No files matched your search

-3
View File
@@ -18,10 +18,7 @@ runs:
version: 1.0 # increment to reset cache version: 1.0 # increment to reset cache
- name: Install Redis - name: Install Redis
if: ${{ inputs.full == 'true' }}
uses: shogo82148/actions-setup-redis@v1 uses: shogo82148/actions-setup-redis@v1
with:
redis-version: "7.x"
- name: "Set up Python" - name: "Set up Python"
uses: actions/setup-python@v6 uses: actions/setup-python@v6
+11
View File
@@ -26,6 +26,17 @@ jobs:
with: with:
extra_args: --all-files extra_args: --all-files
migration-check:
name: Check missing migrations
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup_project
with:
full: false
- name: check migrations
run: uv run ./manage.py makemigrations --check
tests: tests:
name: Run tests and generate coverage report name: Run tests and generate coverage report
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -0,0 +1,29 @@
# Generated by Django 5.2.18 on 2026-11-15 11:46
from django.db import migrations
import antispam.models.fields
class Migration(migrations.Migration):
dependencies = [("core", "0052_preferences_show_my_timetable")]
operations = [
migrations.AlterField(
model_name="user",
name="email",
field=antispam.models.fields.AntiSpamEmailField(
max_length=254, unique=True, verbose_name="email address"
),
),
migrations.AlterField(
model_name="user",
name="second_email",
field=antispam.models.fields.AntiSpamEmailField(
blank=True,
max_length=254,
null=True,
verbose_name="second email address",
),
),
]
+1 -1
View File
@@ -104,7 +104,7 @@ class Migration(migrations.Migration):
"week_group", "week_group",
models.CharField( models.CharField(
blank=True, blank=True,
choices=[("A", "A"), ("B", "B")], choices=[("A", "A"), ("B", "B"), ("", "Both")],
default="", default="",
max_length=1, max_length=1,
verbose_name="week group", verbose_name="week group",