diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-08-27 13:56:26 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-08-27 13:56:26 +0100 |
commit | 75c34b747fc3f6cc776266200db4d1177ca7093e (patch) | |
tree | 5eaacf48d6301fa9ca024f95e57c2a0b55ebd8a8 /utility/remove_migrations.sh | |
parent | ef287a9397cd911d55a37eb98934c203a59a8154 (diff) |
added utility scripts for dropping database, etc
Diffstat (limited to '')
-rwxr-xr-x | utility/remove_migrations.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utility/remove_migrations.sh b/utility/remove_migrations.sh new file mode 100755 index 0000000..6b8960a --- /dev/null +++ b/utility/remove_migrations.sh @@ -0,0 +1,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 |