scripts/taskapp_schemamigration.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:01:49 +0530
changeset 486 c1beaa06a767
parent 485 e56d4bb15349
child 492 89f8e4266b1f
permissions -rwxr-xr-x
Remove the reset_db script. I should not be able to run it even in my dream.

#! /bin/bash

pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d`.dump
./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d`.dump
./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d`.dump
./bin/django schemamigration taskapp --auto
./bin/django migrate taskapp