scripts/taskapp_schemamigration.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 01 Feb 2011 02:03:54 +0530
changeset 535 d90684a803c1
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
Add a utility script with a function to remove Textbook from current textbook chapter tasks.

#! /bin/bash

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