scripts/taskapp_schemamigration.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 31 Jan 2011 01:22:18 +0530
changeset 533 773dc9a66748
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
Use django-registration module url reverse methods than the django's.

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