Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Reseting the Database

Felipe Machado edited this page Oct 15, 2018 · 1 revision

There are two ways to reset the database:

  1. At the project root folder run:
docker-compose run app framework/qlf/manage.py shell -c "from dashboard.models import Exposure; Exposure.objects.all().delete();"

This will delete all Exposures and corresponding Process, Job and Fibermap rows but won't reset their database primary key numbers.

Or

  1. Drop the database tables and restart the backend running ./restartBackend.sh

Make sure RUN_DB_MIGRATIONS=True on docker-compose.yml.