mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-25 16:02:27 +00:00

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.
12 lines
984 B
Bash
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
|