🔥(backend) remove demo data generation from tilt migration job

Remove call to generate demo data in tilt stack as it was never useful
to developers and only complicated the migration job unnecessarily.

Migration job should be laser focused on applying database migrations
rather than seeding mock data, improving clarity and reducing
complexity.
This commit is contained in:
lebaudantoine
2025-08-25 17:02:07 +02:00
committed by aleb_the_flash
parent f46a5dc157
commit 51ed277941
3 changed files with 3 additions and 15 deletions

View File

@@ -78,11 +78,7 @@ backend:
- "/bin/sh"
- "-c"
- |
if ! python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); import sys; sys.exit(0 if User.objects.filter(admin_email='user0@example.com').exists() else 1)"
then
python manage.py migrate --no-input &&
python manage.py create_demo --force || echo "create_demo already run"
fi
python manage.py migrate --no-input
restartPolicy: Never
command:

View File

@@ -79,11 +79,7 @@ backend:
- "/bin/sh"
- "-c"
- |
if ! python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); import sys; sys.exit(0 if User.objects.filter(admin_email='user0@example.com').exists() else 1)"
then
python manage.py migrate --no-input &&
python manage.py create_demo --force || echo "create_demo already run"
fi
python manage.py migrate --no-input
restartPolicy: Never
command:

View File

@@ -100,11 +100,7 @@ backend:
- "/bin/sh"
- "-c"
- |
if ! python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); import sys; sys.exit(0 if User.objects.filter(admin_email='user0@example.com').exists() else 1)"
then
python manage.py migrate --no-input &&
python manage.py create_demo --force || echo "create_demo already run"
fi
python manage.py migrate --no-input
restartPolicy: Never
command: