scripts/profile_schemamigration.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 24 Jan 2011 23:03:57 +0530
changeset 518 92d2f8fb6d09
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
Content of the Email to be sent for Scilab workshop.

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