author | Madhusudan.C.S <madhusudancs@gmail.com> |
Thu, 20 Jan 2011 06:00:17 +0530 | |
changeset 485 | e56d4bb15349 |
child 492 | 89f8e4266b1f |
permissions | -rwxr-xr-x |
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 |
|
e56d4bb15349
Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
3 |
pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d`.dump |
e56d4bb15349
Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
4 |
./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d`.dump |
e56d4bb15349
Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
5 |
./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d`.dump |
e56d4bb15349
Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
6 |
./bin/django schemamigration taskapp --auto |
e56d4bb15349
Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
7 |
./bin/django migrate taskapp |
e56d4bb15349
Scripts for taskapp and profile apps south migrations.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
8 |