2012-12-14 23:38:19 +01:00
|
|
|
#!/bin/sh -xe
|
2012-10-30 21:11:37 +01:00
|
|
|
|
2012-12-14 23:38:19 +01:00
|
|
|
echo "DROP SCHEMA humbug CASCADE; CREATE SCHEMA humbug;" | psql -h localhost humbug humbug
|
2012-10-30 21:11:37 +01:00
|
|
|
|
2012-10-04 17:02:51 +02:00
|
|
|
python manage.py syncdb --noinput
|
2013-02-22 23:51:08 +01:00
|
|
|
python manage.py migrate
|
2012-12-14 23:38:19 +01:00
|
|
|
echo "CREATE UNIQUE INDEX ON auth_user (email);" | psql -h localhost humbug humbug
|
2012-10-03 21:29:38 +02:00
|
|
|
python manage.py populate_db --replay-old-messages -n0
|