scripts/reset_db.sh
changeset 486 c1beaa06a767
parent 485 e56d4bb15349
child 487 dad3fd6464b8
equal deleted inserted replaced
485:e56d4bb15349 486:c1beaa06a767
     1 #! /bin/bash
       
     2 
       
     3 sudo -u postgres dropdb pytask
       
     4 sudo -u postgres createdb -O pytask pytask
       
     5 rm -r pytask/profile/migrations/
       
     6 rm -r pytask/taskapp/migrations/
       
     7 ./bin/django schemamigration profile --initial
       
     8 ./bin/django schemamigration taskapp --initial
       
     9 ./bin/django syncdb
       
    10 ./bin/django migrate profile
       
    11 ./bin/django migrate taskapp
       
    12 ./bin/django loaddata sites_fixture.json 
       
    13 ./bin/django loaddata profile_fixture.json