scripts/profile_schemamigration.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:12:57 +0530
changeset 490 5b15b4080c33
parent 485 e56d4bb15349
child 492 89f8e4266b1f
permissions -rwxr-xr-x
Approve the textbooks directly.

#! /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 profile --auto
./bin/django migrate profile