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