Files
postgres-web/pgweb/dump_initial_data.sh
Magnus Hagander 291919a69b Add some more fixtures based on current data
This includes most models that just contain "metadata" as well as the
complete feature matrix (because it's useful).

Also add a script to refresh the contents of the fixtures. Still has to
be run manually, but mayeb it helps us keep it slightly more up to date.
2021-05-04 12:39:31 +02:00

12 lines
984 B
Bash

#!/bin/bash
# Run this script to refresh the contents of the fixtures based on data currently in the database.
./python manage.py dumpdata --indent 1 --format json core.version core.importedrssfeed core.country > pgweb/core/fixtures/data.json
./python manage.py dumpdata --indent 1 --format json contributors.contributortype > pgweb/contributors/fixtures/data.json
./python manage.py dumpdata --indent 1 --format json docs.docpagealias docs.docpageredirect > pgweb/docs/fixtures/data.json
./python manage.py dumpdata --indent 1 --format json downloads.category downloads.licencetype > pgweb/downloads/fixtures/data.json
./python manage.py dumpdata --indent 1 --format json featurematrix.featuregroup featurematrix.feature > pgweb/featurematrix/fixtures/data.json
./python manage.py dumpdata --indent 1 --format json lists.mailinglistgroup > pgweb/lists/fixtures/data.json
./python manage.py dumpdata --indent 1 --format json sponsors.sponsortype > pgweb/sponsors/fixtures/data.json