summaryrefslogtreecommitdiff
path: root/scripts/profile_schemamigration.sh
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-01-20 06:00:17 +0530
committerMadhusudan.C.S2011-01-20 06:00:17 +0530
commitaf2146159923be58d2155aa89ba24a8669651f18 (patch)
treef7e9e4ecb402eb45b683f605aae5f8221a422fc8 /scripts/profile_schemamigration.sh
parent0eb306c0fac34f018f36e492a69a6880973c218f (diff)
downloadpytask-af2146159923be58d2155aa89ba24a8669651f18.tar.gz
pytask-af2146159923be58d2155aa89ba24a8669651f18.tar.bz2
pytask-af2146159923be58d2155aa89ba24a8669651f18.zip
Scripts for taskapp and profile apps south migrations.
Diffstat (limited to 'scripts/profile_schemamigration.sh')
-rwxr-xr-xscripts/profile_schemamigration.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/profile_schemamigration.sh b/scripts/profile_schemamigration.sh
new file mode 100755
index 0000000..9dc7ff5
--- /dev/null
+++ b/scripts/profile_schemamigration.sh
@@ -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
+