-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpopulate_fixtures.sh
21 lines (21 loc) · 1.29 KB
/
populate_fixtures.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
echo "Migrating new db changes..."
python manage.py makemigrations
python manage.py migrate
echo "Populating Fixtures now..."
python manage.py loaddata benchmarks/fixtures/fixture-users.json
python manage.py loaddata benchmarks/fixtures/fixture-benchmarkreferences.json
python manage.py loaddata benchmarks/fixtures/fixture-benchmarktypes.json
python manage.py loaddata benchmarks/fixtures/fixture-benchmarkmeta.json
python manage.py loaddata benchmarks/fixtures/fixture-benchmarkinstances.json
python manage.py loaddata benchmarks/fixtures/fixture-submissions.json
python manage.py loaddata benchmarks/fixtures/fixture-modelreferences.json
python manage.py loaddata benchmarks/fixtures/fixture-models.json
python manage.py loaddata benchmarks/fixtures/fixture-scores.json
echo "Installing language fixtures..."
python manage.py loaddata benchmarks/fixtures/fixture-benchmarktypes-language.json
python manage.py loaddata benchmarks/fixtures/fixture-benchmarkmeta-language.json
python manage.py loaddata benchmarks/fixtures/fixture-benchmarkinstances-language.json
python manage.py loaddata benchmarks/fixtures/fixture-users-language.json
python manage.py loaddata benchmarks/fixtures/fixture-models-language.json
python manage.py loaddata benchmarks/fixtures/fixture-scores-language.json
echo "Done. Check db.sqlite file."