scripts/profile_schemamigration.sh
changeset 485 e56d4bb15349
child 492 89f8e4266b1f
equal deleted inserted replaced
484:d2a4fcbe2fae 485:e56d4bb15349
       
     1 #! /bin/bash
       
     2 
       
     3 pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d`.dump
       
     4 ./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d`.dump
       
     5 ./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d`.dump
       
     6 ./bin/django schemamigration profile --auto
       
     7 ./bin/django migrate profile
       
     8