From 7acd6671bc2555ad873deac04c8f8236bbe7f56b Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Mon, 2 Dec 2019 21:08:15 +0100 Subject: [PATCH] Add a homebrewed script to reset the database. --- bin/reset_db.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+), 0 deletions(-) create mode 100755 bin/reset_db.sh diff --git a/bin/reset_db.sh b/bin/reset_db.sh new file mode 100755 index 0000000..407594f --- /dev/null +++ b/bin/reset_db.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +# Fill the VERSION file with the new version, following semantic versioning. +# You MUST run this script from the project's root directory. + +# COLORS ###################################################################### + +Off='\033[0m' # Text Reset + +# Regular Colors +Black='\033[0;30m' # Black +Red='\033[0;31m' # Red +Green='\033[0;32m' # Green +Yellow='\033[0;33m' # Yellow +Blue='\033[0;34m' # Blue +Purple='\033[0;35m' # Purple +Cyan='\033[0;36m' # Cyan +White='\033[0;37m' # White + +# BUSINESS #################################################################### + +rm database.db +#rm database_prod.db + +python manage.py createdb +#mv database.db database_prod.db + + -- libgit2 0.21.2