scripts/taskapp_schemamigration.sh
changeset 492 89f8e4266b1f
parent 485 e56d4bb15349
equal deleted inserted replaced
491:630719435d16 492:89f8e4266b1f
     1 #! /bin/bash
     1 #! /bin/bash
     2 
     2 
     3 pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d`.dump
     3 pg_dump pytask -U pytask -W > ~/pytaskdbdumps/dbdump`date +%Y%m%d%H%M%s`.dump
     4 ./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d`.dump
     4 ./bin/django dumpscript > ~/pytaskdbdumps/dbdumpscript`date +%Y%m%d%H%M%s`.dump
     5 ./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d`.dump
     5 ./bin/django dumpdata > ~/pytaskdbdumps/dbdumpdata`date +%Y%m%d%H%M%s`.dump
     6 ./bin/django schemamigration taskapp --auto
     6 ./bin/django schemamigration taskapp --auto
     7 ./bin/django migrate taskapp
     7 ./bin/django migrate taskapp
     8 
     8