aboutsummaryrefslogtreecommitdiffstats
path: root/utility/trunc_and_populate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utility/trunc_and_populate.sh')
-rwxr-xr-xutility/trunc_and_populate.sh9
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