Skip to content

Commit cf1a2d4

Browse files
committed
chore: update sprites/add make command to destroy the db
fix: run flush non interactively
1 parent e2e43d8 commit cf1a2d4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ docker-build-db: # (Docker) Build the database
4949
docker-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

5559
docker-shell: # (Docker) Launch an interative shell for the pokeapi container
5660
docker-compose exec app sh -l

data/v2/sprites

Submodule sprites updated 126 files

0 commit comments

Comments
 (0)