scripts/taskapp_schemamigration.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 21 Jan 2011 02:11:59 +0530
changeset 507 1d4631fcebd0
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
Add uberbar messages not to claim the task. This must be disabled once claiming is possible.

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