Owner: Engineering Team | Last Updated: 2026-01-30 | Status: Current
Best practices for Django database migrations.
python manage.py makemigrations
python manage.py migrate # Test locally
RunPython for data migrations| Safe | Unsafe |
|---|---|
| Add nullable column | Remove column |
| Add table | Rename column |
| Add index | Change column type |
| Add default value | Drop table |
| Date | Author | Change |
|---|---|---|
| 2026-01-30 | Admin | Initial creation |
Prev: Guide: Adding a New Detector | Next: Guide: Debugging Production Issues | Up: General