Files
mostovik-backend/scripts/check-migrations.sh
Aleksandr Meshchriakov cbfbd8652d feat: Add comprehensive Django user app with tests using model-bakery
- Implemented user authentication with JWT tokens
- Added user and profile models with OneToOne relationship
- Created service layer for business logic separation
- Implemented DRF serializers and views
- Added comprehensive test suite with model-bakery factories
- Fixed ipdb/pdbpp dependency conflicts with custom test runner
- Configured development and production environments
- Added deployment configurations for Apache, systemd, and Docker
2026-01-19 14:12:33 +01:00

16 lines
539 B
Bash
Executable File

#!/bin/bash
# Django migration check script for pre-commit
cd "$(dirname "$0")/../src" || exit 1
export PYTHONPATH=.
export DJANGO_SETTINGS_MODULE=config.settings.development
if uv run python manage.py makemigrations --check --dry-run; then
echo "✓ Django migrations are up to date"
exit 0
else
echo "⚠ Warning: Django migrations check failed (may be due to configuration issues)"
echo " This doesn't prevent commits, but you should check migrations manually"
exit 0 # Exit with success to not block commits
fi