scripts/reset_db.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Sat, 15 Jan 2011 04:18:57 +0530
changeset 413 49b58b9b10a1
child 416 265dbd81c451
permissions -rwxr-xr-x
Add reset_db script.

#! /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