Skip to content

Commit

Permalink
drop items before restoring db
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Nov 25, 2024
1 parent 11676e9 commit 7104019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dump-db:

load-db:
docker compose cp care_db.dump db:/tmp/care_db.dump
docker compose exec db sh -c "pg_restore -U postgres -d care /tmp/care_db.dump"
docker compose exec db sh -c "pg_restore -U postgres --clean --if-exists -d care /tmp/care_db.dump"

reset-db:
docker compose exec backend bash -c "python manage.py reset_db --noinput"
Expand Down

0 comments on commit 7104019

Please sign in to comment.