summaryrefslogtreecommitdiff
path: root/scripts/reset_db.sh
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-01-15 21:21:19 +0530
committerMadhusudan.C.S2011-01-15 21:21:19 +0530
commitfd71cf3cf18c33d80db9c95431e140ee0a8533ea (patch)
tree72569eae4f5f6c43d6ee4ba8645206143398290d /scripts/reset_db.sh
parent8eccb87791ca608be4508fee80f2de9454e4403c (diff)
downloadpytask-fd71cf3cf18c33d80db9c95431e140ee0a8533ea.tar.gz
pytask-fd71cf3cf18c33d80db9c95431e140ee0a8533ea.tar.bz2
pytask-fd71cf3cf18c33d80db9c95431e140ee0a8533ea.zip
Remove initial south migrations also during reset of the database.
Diffstat (limited to 'scripts/reset_db.sh')
-rwxr-xr-xscripts/reset_db.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/reset_db.sh b/scripts/reset_db.sh
index 52643e6..057cf92 100755
--- a/scripts/reset_db.sh
+++ b/scripts/reset_db.sh
@@ -2,6 +2,10 @@
sudo -u postgres dropdb pytask
sudo -u postgres createdb -O pytask pytask
+rm -r pytask/profile/migrations/
+rm -r pytask/taskapp/migrations/
+./bin/django schemamigration profile --initial
+./bin/django schemamigration taskapp --initial
./bin/django syncdb
./bin/django migrate profile
./bin/django migrate taskapp