blob: 6b8960a0b7923c5d043c2d88e831018a307e0141 (
plain) (
blame)
1
2
3
4
5
6
7
|
#!/usr/bin/env bash
echo "Removing migrations from all migrations directories, except in .venv..."
find . -path "*/migrations/*.py" -not -name "__init__.py" -not -path "./.venv/*" -delete
find . -path "*/migrations/*.pyc" -not -path "./.venv/*" -delete
find . -path "*/migrations/__pycache__" -not -path "./.venv/*" -delete
|