Remove initial south migrations also during reset of the database.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sat, 15 Jan 2011 21:21:19 +0530
changeset 416 265dbd81c451
parent 415 c631194cec2a
child 417 b37e541bf950
Remove initial south migrations also during reset of the database.
scripts/reset_db.sh
--- a/scripts/reset_db.sh	Sat Jan 15 21:20:35 2011 +0530
+++ b/scripts/reset_db.sh	Sat Jan 15 21:21:19 2011 +0530
@@ -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