scripts/profile_schemamigration.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 17:46:49 +0530
changeset 501 b84d6a1d4603
parent 492 89f8e4266b1f
permissions -rwxr-xr-x
Change all the queries to Textbook model to Tasks. Since Textbook model is deprecated now, implemented the changes in the views to query respected queries and make corresponding changes in the views.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
485
e56d4bb15349 Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
#! /bin/bash
e56d4bb15349 Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
492
89f8e4266b1f Add time to filenames generated for dumps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 485
diff changeset
     3
pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d%H%M%s`.dump
89f8e4266b1f Add time to filenames generated for dumps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 485
diff changeset
     4
./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d%H%M%s`.dump
89f8e4266b1f Add time to filenames generated for dumps.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 485
diff changeset
     5
./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d%H%M%s`.dump
485
e56d4bb15349 Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
./bin/django schemamigration profile --auto
e56d4bb15349 Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
./bin/django migrate profile
e56d4bb15349 Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8