diff options
author | Madhusudan.C.S | 2011-01-15 21:21:19 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-01-15 21:21:19 +0530 |
commit | fd71cf3cf18c33d80db9c95431e140ee0a8533ea (patch) | |
tree | 72569eae4f5f6c43d6ee4ba8645206143398290d /scripts/reset_db.sh | |
parent | 8eccb87791ca608be4508fee80f2de9454e4403c (diff) | |
download | pytask-fd71cf3cf18c33d80db9c95431e140ee0a8533ea.tar.gz pytask-fd71cf3cf18c33d80db9c95431e140ee0a8533ea.tar.bz2 pytask-fd71cf3cf18c33d80db9c95431e140ee0a8533ea.zip |
Remove initial south migrations also during reset of the database.
Diffstat (limited to 'scripts/reset_db.sh')
-rwxr-xr-x | scripts/reset_db.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/reset_db.sh b/scripts/reset_db.sh index 52643e6..057cf92 100755 --- a/scripts/reset_db.sh +++ b/scripts/reset_db.sh @@ -2,6 +2,10 @@ sudo -u postgres dropdb pytask sudo -u postgres createdb -O pytask pytask +rm -r pytask/profile/migrations/ +rm -r pytask/taskapp/migrations/ +./bin/django schemamigration profile --initial +./bin/django schemamigration taskapp --initial ./bin/django syncdb ./bin/django migrate profile ./bin/django migrate taskapp |