# HG changeset patch # User Madhusudan.C.S # Date 1295483417 -19800 # Node ID e56d4bb15349ad55a308e6404d61e19edcdbc18d # Parent d2a4fcbe2fae9e49faa74aa1e385bcd6f794f0e4 Scripts for taskapp and profile apps south migrations. diff -r d2a4fcbe2fae -r e56d4bb15349 scripts/profile_schemamigration.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/profile_schemamigration.sh Thu Jan 20 06:00:17 2011 +0530 @@ -0,0 +1,8 @@ +#! /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 + diff -r d2a4fcbe2fae -r e56d4bb15349 scripts/taskapp_schemamigration.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/taskapp_schemamigration.sh Thu Jan 20 06:00:17 2011 +0530 @@ -0,0 +1,8 @@ +#! /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 taskapp --auto +./bin/django migrate taskapp +