aboutsummaryrefslogtreecommitdiffstats
path: root/utility/drop_and_recreate.sh
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-08-27 13:56:26 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-08-27 13:56:26 +0100
commit75c34b747fc3f6cc776266200db4d1177ca7093e (patch)
tree5eaacf48d6301fa9ca024f95e57c2a0b55ebd8a8 /utility/drop_and_recreate.sh
parentef287a9397cd911d55a37eb98934c203a59a8154 (diff)
added utility scripts for dropping database, etc
Diffstat (limited to '')
-rwxr-xr-xutility/drop_and_recreate.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/utility/drop_and_recreate.sh b/utility/drop_and_recreate.sh
new file mode 100755
index 0000000..89734f4
--- /dev/null
+++ b/utility/drop_and_recreate.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+echo "Ensure this is run from project root."
+echo "Dropping database..."
+sudo -u postgres psql -f utility/drop_and_recreate.sql
+echo "Done."
+