-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
dumpfixtures.sh
27 lines (20 loc) · 1.96 KB
/
dumpfixtures.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
source ./venv/bin/activate
python3 manage.py dumpdata --format=json --indent 2 start.DocPage -o start/fixtures/DocPage.json
python3 manage.py dumpdata --format=json --indent 2 start.ORMKeyword -o start/fixtures/ORMKeyword.json
python3 manage.py dumpdata --format=json --indent 2 reference.EmissionFactor -o reference/fixtures/EmissionFactor.json
python3 manage.py dumpdata --format=json --indent 2 reference.BuildingEmissionFactor -o reference/fixtures/BuildingEmissionFactor.json
python3 manage.py dumpdata --format=json --indent 2 reference.GPCSector -o reference/fixtures/GPCSector.json
python3 manage.py dumpdata --format=json --indent 2 portfolio.PortfolioManager -o portfolio/fixtures/PortfolioManager.json
python3 manage.py dumpdata --format=json --indent 2 portfolio.Project -o portfolio/fixtures/Project.json
python3 manage.py dumpdata --format=json --indent 2 portfolio.ProjectActivity -o portfolio/fixtures/ProjectActivity.json
python3 manage.py dumpdata --format=json --indent 2 portfolio.PrimaryEffect -o portfolio/fixtures/PrimaryEffect.json
python3 manage.py dumpdata --format=json --indent 2 portfolio.SecondaryEffect -o portfolio/fixtures/SecondaryEffect.json
python3 manage.py dumpdata --format=json --indent 2 portfolio.GPCEmissionsSource -o portfolio/fixtures/GPCEmissionsSource.json
python3 manage.py dumpdata --format=json --indent 2 risk.Scenario -o risk/fixtures/Scenario.json
python3 manage.py dumpdata auth.User --indent 2 > start/fixtures/users.json
python3 manage.py dumpdata auth.Group --indent 2 > start/fixtures/groups.json
python3 manage.py dumpdata --format=json --indent 2 portfolio.PointSource -o portfolio/fixtures/PointSource.json
python3 manage.py dumpdata reference.NUTS3PointData --indent 2 > reference/fixtures/NUTS3PointData.json
python3 manage.py dumpdata reference.ReferenceIntensity --indent 2 > reference/fixtures/ReferenceIntensity.json
python3 manage.py dumpdata reporting.SummaryStatistics --indent 2 > reporting/fixtures/SummaryStatistics.json