From 6f95c8f222a63cb5ea78a67bb8d09da7f9c03e81 Mon Sep 17 00:00:00 2001 From: Vermaas <vermaas@astron.nl> Date: Tue, 12 Mar 2024 14:01:50 +0100 Subject: [PATCH] some convenience scripts to load/dump the configuration table (before loading a new database sql dump) --- atdb/dumpdata.bat | 4 ++++ atdb/loaddata.bat | 4 ++++ atdb/superuser.bat | 1 + 3 files changed, 9 insertions(+) create mode 100644 atdb/dumpdata.bat create mode 100644 atdb/loaddata.bat create mode 100644 atdb/superuser.bat diff --git a/atdb/dumpdata.bat b/atdb/dumpdata.bat new file mode 100644 index 00000000..82e4fef5 --- /dev/null +++ b/atdb/dumpdata.bat @@ -0,0 +1,4 @@ +python manage.py dumpdata taskdatabase.configuration --indent 4 --settings=atdb.settings.dev > configuration_fixture.json + +# sdc-dev / sdc +# docker exec -it atdb-ldv python manage.py dumpdata taskdatabase.configuration --indent 4 --settings=atdb.settings.docker_sdc > configuration_fixture.json diff --git a/atdb/loaddata.bat b/atdb/loaddata.bat new file mode 100644 index 00000000..53a7dabf --- /dev/null +++ b/atdb/loaddata.bat @@ -0,0 +1,4 @@ +python manage.py loaddata configuration_fixture.json --settings=atdb.settings.dev + +# sdc-dev / sdc +# docker exec -it atdb-ldv python manage.py loaddata configuration_fixture.json --indent 4 --settings=atdb.settings.docker_sdc diff --git a/atdb/superuser.bat b/atdb/superuser.bat new file mode 100644 index 00000000..879d8c04 --- /dev/null +++ b/atdb/superuser.bat @@ -0,0 +1 @@ +python manage.py createsuperuser --settings=atdb.settings.dev \ No newline at end of file -- GitLab