File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,12 @@ docker-build-db: # (Docker) Build the database
4949docker-make-migrations : # (Docker) Create migrations files if schema has changed
5050 docker-compose exec -T app sh -c ' python manage.py makemigrations ${docker_config}'
5151
52- docker-flush-db : # (Docker) Removes all the data present in the database
53- docker-compose exec -T app sh -c ' python manage.py flush ${docker_config}'
52+ docker-flush-db : # (Docker) Removes all the data present in the database but preserves tables and migrations
53+ docker-compose exec -T app sh -c ' python manage.py flush --no-input ${docker_config}'
54+
55+ docker-destroy-db : # (Docker) Removes the volume where the database is installed on, alongside to the container itself
56+ docker rm -f pokeapi_db_1
57+ docker volume rm pokeapi_pg_data
5458
5559docker-shell : # (Docker) Launch an interative shell for the pokeapi container
5660 docker-compose exec app sh -l
You can’t perform that action at this time.
0 commit comments