Add reset_db script.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sat, 15 Jan 2011 04:18:57 +0530
changeset 413 49b58b9b10a1
parent 412 ddd52b52dd9d
child 414 a052c9ffa27d
Add reset_db script.
scripts/reset_db.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/reset_db.sh	Sat Jan 15 04:18:57 2011 +0530
@@ -0,0 +1,9 @@
+#! /bin/bash
+
+sudo -u postgres dropdb pytask
+sudo -u postgres createdb -O pytask pytask
+./bin/django syncdb
+./bin/django migrate profile
+./bin/django migrate taskapp
+./bin/django loaddata sites_fixture.json 
+