Commit 7acd6671bc2555ad873deac04c8f8236bbe7f56b
1 parent
2836764a
Exists in
master
Add a homebrewed script to reset the database.
You still need to source and export first.
Showing
1 changed file
with
28 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,28 @@ | @@ -0,0 +1,28 @@ | ||
1 | +#!/usr/bin/env bash | ||
2 | + | ||
3 | +# Fill the VERSION file with the new version, following semantic versioning. | ||
4 | +# You MUST run this script from the project's root directory. | ||
5 | + | ||
6 | +# COLORS ###################################################################### | ||
7 | + | ||
8 | +Off='\033[0m' # Text Reset | ||
9 | + | ||
10 | +# Regular Colors | ||
11 | +Black='\033[0;30m' # Black | ||
12 | +Red='\033[0;31m' # Red | ||
13 | +Green='\033[0;32m' # Green | ||
14 | +Yellow='\033[0;33m' # Yellow | ||
15 | +Blue='\033[0;34m' # Blue | ||
16 | +Purple='\033[0;35m' # Purple | ||
17 | +Cyan='\033[0;36m' # Cyan | ||
18 | +White='\033[0;37m' # White | ||
19 | + | ||
20 | +# BUSINESS #################################################################### | ||
21 | + | ||
22 | +rm database.db | ||
23 | +#rm database_prod.db | ||
24 | + | ||
25 | +python manage.py createdb | ||
26 | +#mv database.db database_prod.db | ||
27 | + | ||
28 | + |