chore: update sprites/add make command to destroy the db

fix: run flush non interactively
This commit is contained in:
Alessandro Pezzè 2021-02-13 19:27:58 +01:00
parent e2e43d8bda
commit cf1a2d4f51
2 changed files with 7 additions and 3 deletions

View file

@ -49,8 +49,12 @@ docker-build-db: # (Docker) Build the database
docker-make-migrations: # (Docker) Create migrations files if schema has changed
docker-compose exec -T app sh -c 'python manage.py makemigrations ${docker_config}'
docker-flush-db: # (Docker) Removes all the data present in the database
docker-compose exec -T app sh -c 'python manage.py flush ${docker_config}'
docker-flush-db: # (Docker) Removes all the data present in the database but preserves tables and migrations
docker-compose exec -T app sh -c 'python manage.py flush --no-input ${docker_config}'
docker-destroy-db: # (Docker) Removes the volume where the database is installed on, alongside to the container itself
docker rm -f pokeapi_db_1
docker volume rm pokeapi_pg_data
docker-shell: # (Docker) Launch an interative shell for the pokeapi container
docker-compose exec app sh -l

@ -1 +1 @@
Subproject commit 897eaefad787da88a5ad6b0cdce833360f9f8163
Subproject commit e24fdb772a7568d06081645034fc03afb420ec1b