Scripts for taskapp and profile apps south migrations.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:00:17 +0530
changeset 485 e56d4bb15349
parent 484 d2a4fcbe2fae
child 486 c1beaa06a767
Scripts for taskapp and profile apps south migrations.
scripts/profile_schemamigration.sh
scripts/taskapp_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
+
--- /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
+