Clarify that we expect things to work on Windows desktop.
[pgweb.git] / pgweb / load_initial_data.sh
blobfb16e70c2f1170d03265b0bbb7f1d880f14dbb47
1 #!/bin/bash
3 # We keep this in a separate script because using initial_data.xxx in django will overwrite
4 # critical data in the database when running a 'syncdb'. We'd like to keep the ability to
5 # run syncdb on updates...
7 echo WARNING: this may overwrite some data in the database with an initial set of data.
8 echo 'Are you sure you want this (answer "yes" to overwrite)'
9 read R
11 cd $(dirname $0)
13 if [ "$R" == "yes" ]; then
14 find . -name data.json | xargs ../manage.py loaddata