diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-03-04 21:05:24 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-03-04 21:05:24 +0000 |
commit | e20afcf33bac3d1aadeaf37358640513219c2b07 (patch) | |
tree | b4b0c87f062e8a7ac1d85cfa9a195441c1725c9c /utility | |
parent | 0943dde1fe36876d23a3abfca75c9719f9eafd33 (diff) |
added an all-in-one truncate and populate script and better population code
Diffstat (limited to 'utility')
-rwxr-xr-x | utility/trunc_and_populate.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utility/trunc_and_populate.sh b/utility/trunc_and_populate.sh new file mode 100755 index 0000000..8ac3a4f --- /dev/null +++ b/utility/trunc_and_populate.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +echo "Truncating the database." +sudo -u postgres psql -f utility/truncate_script.sql ctrack + +sleep 1 + +echo "Populating the database with test data." +python manage.py populate_db 20 |