scripts/profile_schemamigration.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 04 Feb 2011 16:36:00 +0530
changeset 555 20fe9db8bc81
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
EditTextBook form should use Task model itself.

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