From 9e8d0901d1eae61b81076d8284126db103dfd694 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Mon, 1 Jun 2020 17:55:03 +0200 Subject: [PATCH] restart postgres to disconnect everybody --- shell/tabularasa | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/tabularasa b/shell/tabularasa index 0a81c5f..b6ccbcd 100755 --- a/shell/tabularasa +++ b/shell/tabularasa @@ -1,4 +1,6 @@ #!/usr/bin/sh +sudo service postgresql stop +sudo service postgresql start sudo -u postgres sh -c "dropdb note_db && psql -c 'CREATE DATABASE note_db OWNER note;'"; echo 'reset db'; find apps/ -path "*/migrations/*.py*" -not -name "__init__.py" -delete